bzzix / laravel-page-builder
GrapesJS integration for Laravel
Package info
github.com/bzzix/laravel-page-builder
Language:Blade
pkg:composer/bzzix/laravel-page-builder
Requires
- php: ^8.1
- cviebrock/eloquent-sluggable: ^9.0 || ^10.0
- illuminate/support: ^10|^11
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
This package provides an easy way to integrate GrapesJS into your Laravel project making it easy to build professional pages with drag and drop.
Installation
Step 1: Navigate to Your Project Directory
Before you begin, navigate to the directory where your Laravel project is located. Use the following command to change into your project directory:
cd path/to/your/laravel-project
Step 2: Installation
You can install this library using Composer. Run the following command:
composer require bzzix/laravel-page-builder
Step 3: Register the ServiceProvider
Register the PageBuilderServiceProvider in your Laravel project. Open the config/app.php file and add the following line to the providers array:
// config/app.php 'providers' => ServiceProvider::defaultProviders()->merge([ /* * Package Service Providers... */ // Other providers... Bzzix\PageBuilder\PageBuilderServiceProvider::class, ])->toArray(),
Step 4: Dump Autoload Files
After registering the ServiceProvider, run the following command to re-generate Composer's autoloader files:
composer dump-autoload
Step 5: Publish Configuration, Assets, and Migrations
To publish the configuration files, assets, and migrations provided by this package, run:
php artisan vendor:publish --provider="Bzzix\PageBuilder\PageBuilderServiceProvider"
This will deploy:
assetfiles inside the public folder (bzzix-pagebuilder)- the config file inside the
configfolder - the migration file inside the
database/migrationsfolder
Step 6: Configure Basic Settings
To start using this package, follow these steps to configure the basic settings:
Open the bzzix-pagebuilder.php file inside the config folder. Adjust the basic settings according to your requirements.