I am currently working on a CMS and one of the key features is allowing users to customize the design. However, I am facing a challenge in figuring out how to utilize the data retrieved from the database to implement these changes. For example, if a user wants to change the background color to black and adjust the font size, I need to write code similar to this (I may not know how to write Laravel code for styling purposes, but I have provided an example to clarify):
<div style="background-color:{{$queryResult->bgColor}};font-size:{{$queryResult->fontSize}}"></div>