laravel-cms
laravel-cms copied to clipboard
Page issues while creating
When opening url, getting middleware issue https://headsocial.com/images/MqdUxPLQVXQ029P02IGh.png
route file Route::group(['prefix' => '/cms-admin'], function () { Route::group(['middleware'=>'adminonly'], function(){ AdvancedRoute::controller('/cms', '\Sinevia\Cms\Http\Controllers\CmsController'); }); });
When i am creating pages, these are not accessible https://headsocial.com/images/qW77smHzjrqsHqxYlRSd.png
When viewing the page https://headsocial.com/images/vL74ikylQTOZLa1IJE3e.png
All tables are present and system
The middleware issue is because the 'adminonly' middleware is missing. Please create a middleware which allows only admins to access the endpoint. It is put only as a precaution, you can change it with your onw middleware or remove it
When you create a new page a long path is given, to prevent other users from incidentally visiting it, while you work on it.
Once you are done with the page, you can change the path to the final URL you want it to be. You can do this from the SEO tab.
i am doing the same but page not found error coming, i am not able to see preview and no Rich text editor support working
To be able to view the pages, make sure you have added the frontend endpoint as shown in the readme:
Route::group(['prefix' => '/'], function () {
Route::any('/{path?}', '\Sinevia\Cms\Http\Controllers\CmsController@anyPageView')
->where('path', '.+');
});
Hi, Any of editor not working in my setup is there anything additional need to be configured..
The editors are JS based. It might be your layout is missing some JS libraries. Please check the dev console for errors.