Installation
Install Laravel Page Builder using Composer.
Requirements
- PHP 8.2+
- Laravel 11.x, 12.x, or 13.x
Install via Composer
bash
composer require coderstm/laravel-page-builderThe package auto-registers its service provider via Laravel's package discovery.
Run the Install Command
bash
php artisan pagebuilder:installThis single command:
- Publishes
config/pagebuilder.php - Publishes frontend assets and static files
- Scaffolds default starter views into your app:
resources/views/layouts/page.blade.php— base HTML layoutresources/views/sections/— announcement, header, hero, rich-text, content, page-content, footerresources/views/blocks/— row, column, textresources/views/templates/— page.json
- Automatically runs the Page Builder database migrations
Options
| Flag | Description |
|---|---|
--force | Overwrite files that already exist |
bash
# Overwrite existing files during installation
php artisan pagebuilder:install --forcePublish the Config
The install command publishes the config automatically. If you need to re-publish it later:
bash
php artisan vendor:publish --tag=pagebuilder-configThis creates config/pagebuilder.php in your application. See Configuration for all available options.
Verify Installation
- Visit your application in the browser
- Add
?editor=trueto any page URL - You should see the visual editor interface
bash
# Example: Visit http://your-app.test?editor=trueThe editor uses two query parameters:
?editor=true— loads the editor frame (the React SPA)?pb-editor=1— activates editor mode (data attributes, CSS classes)