This package provides an easy way to integrate GrapesJS into your Laravel project making it easy to build professional pages with drag and drop.
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-projectYou can install this library using Composer. Run the following command:
composer require lamoud/laravel-grapesjsRegister the GrapesjsServiceProvider 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...
Lamoud\LaravelGrapesjs\GrapesjsServiceProvider::class,
])->toArray(),After registering the ServiceProvider, run the following command to re-generate Composer's autoloader files:
composer dump-autoloadTo publish the configuration files provided by this package, run the following Artisan command:
php artisan vendor:publish --provider="Lamoud\LaravelGrapesjs\GrapesjsServiceProvider"This will deploy asset files inside the public folder with the name lamoud-grapesjs and the file lamoud-grapesjs.php inside the config folder.
To start using this package, follow these steps to configure the basic settings:
Open the lamoud-grapesjs.php file inside the config folder. Adjust the basic settings according to your requirements.