Open kadrian92 opened 1 year ago
do you have gjs_data column on Page model ??
this column use to store the grapesjs data
Yes, I added it manually to the pages table as JSON type
@kadrian92 in your config see laravel-grapejs.php file and check for routes, disable the auth middleware and your 403 will be solved.
I'm trying to use this package in my laravel project.
When I go to this link: http://1.1.1.1:8000/admin/pages/1/editor then the editor loads, but with a blank page. I getting an error in the console tab: The defination for plugin 'gjs-plugin-ckeditor' not found. I haven't changed anything in the config.
Page model:
I added
use EditorTrait;
and the editor method into the PageController :And the route is
Route::get('pages/{page}/editor', [BackendPageController::class, 'editor']);
And I can't save what I doing in the editor because I get a 403 error if I click on the save button.
http://1.1.1.1:8000/laravel-grapesjs/App-Models-Page/1 403 (Forbidden)
You can see everything in the picture: