HansSchouten / Laravel-Pagebuilder

A drag and drop pagebuilder to manage pages in any Laravel project
https://www.phpagebuilder.com
MIT License
783 stars 182 forks source link

How to make custom function to store a new page ? #23

Closed kousar2334 closed 4 years ago

HansSchouten commented 4 years ago

Here you see some example code for various customizations: https://github.com/HansSchouten/Laravel-Pagebuilder/issues/8#issuecomment-625410309

See the custom build() controller method.

kousar2334 commented 4 years ago

Screenshot_2020-06-28_19-35-25 Screenshot_2020-06-28_19-35-49 Screenshot_2020-06-28_19-36-23 Can I make this kind of grid system using this package?

HansSchouten commented 4 years ago

Yes it is possible, however the "select your structure" that you showed is not yet supported. But good suggestion! For now you can do this in your view file (if you included bootstrap):

<div class="row">
    <div class="col-md-6" phpb-blocks-container></div>
    <div class="col-md-6" phpb-blocks-container></div>
</div>

This will allow dropping any other blocks inside the two columns that you created. For now you can use this example to create a separate block for any grid variant you want to have.