lamoud / laravel-grapesjs
This package provides an easy way to integrate GrapesJS into your Laravel project making it easy to build professional pages with drag and drop.
Requires
- php: ^7.4 || ^8.0
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 lamoud/laravel-grapesjs
Step 3: Register the ServiceProvider
Register 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(),
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 Files
To 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.
Step 6: Configure Basic Settings
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.