Do you want to make a page builder like for example Wordpress Elementor ?
Seeking Advice: Implementing Dynamic Page Layouts in Laravel
Hello everyone,
I'm currently working on a Laravel project where I need to implement a dynamic page builder feature. I want to allow users to create pages with different layouts (such as two-column, tabbed layout, accordion layout, etc.) and customize the content within those layouts.
I've already created a pages, but I'm struggling with how to implement the dynamic layout selection and configuration within the page creation form itself.
Could anyone provide me with guidance or best practices on how to achieve this? Specifically, I'm looking for suggestions on:
- How to design the database schema to accommodate different layouts and their configurations.
- How to modify the page creation form to include options for selecting layouts and dynamically showing/hiding relevant content fields based on the selected layout.
- How to handle the controller logic and Blade templates to save and render pages with dynamic layouts effectively. Any advice, examples, or resources you can share would be greatly appreciated!
for better example,
i need to enable this type of design in homepage or other pages too please look at this image https://i.ibb.co/tZPd7z1/Screenshot-2024-03-16-at-17-42-34-Cliper-Cliper-Photo-Studio-HTML5-Template.png
Thank you in advance for your help.
Please or to participate in this conversation.