Download the PHP package flobbos/laravel-pagebuilder without Composer
On this page you can find all versions of the php package flobbos/laravel-pagebuilder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-pagebuilder
Laravel-Pagebuilder
Docs
- Installation
- Configuration
- Migrations
- Seeds
- Generators
- Slugs
- Fields
- JS
- Laravel compatibility
Installation
Install the package
Install pagebuilder
Laravel 5.7+
This will run all migrations and trigger the seeder for the initial elements and a language entry
Configuration
The only thing in the config file is the classes you wish to use with Pagebuilder.
You need to generate a model class first using the built in generator.
Set additional classes that are supposed to run in a Pagebuilder controller. You can generate multiple controllers for multiple resources using the Pagebuilder.
This setting in the generated controller will tell it which resource it needs to use for generating content.
Generators
You can generate the controller and views for creating pagebuilder based resources using the following generator commands:
This will generate a complete resource controller named PageController where the routes and view calls are replaced with the values above. The views will always be prefixed with vendor.
Use the corresponding routes that you set with the controller and it will all work magically.
This will generate a Page model that extends the BasePage model that comes with the package so all necessary relationships and translation options are included. This step is necessary to be able to generate content because the BasePage model should not be used as a resource directly.
Slugs
The pagebuilder is capable of generating translated URL slugs for you. All you need to do is uncomment the following line from your generated model:
This will tell the pagebuilder which field in the translations is supposed to generate the URL slug. The slug will automatically be regenerated when you change the named field.
Fields
There are some basic fields in the settings area for an resource but you are free to add as many additional fields as needed. These fields will be automatically saved in the database without further modifications to the DB structure.
JS Components
To use the pagebuilder you need to install its VueJS counterpart by running:
All the needed documentation can be found here: Vue Pagebuilder
Laravel compatibility
Laravel | Crudable |
---|---|
9.x | >2.0.0 |
8.x | >1.0.10 |
7.x | >1.0.10 |
6.x | >1.0.3 |
5.8 | >1.0.0 |
5.7 | >1.0.0 |
All versions of laravel-pagebuilder with dependencies
illuminate/support Version 9.*|10.*
flobbos/laravel-translatable-db Version ^1.4
cocur/slugify Version ^4.0
livewire/livewire Version ^2.4