You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jeff Simons Decena edited this page Jul 22, 2016
·
1 revision
Q: How to customise your CMS pages?
A: When you run the php artisan vendor:publish, it publishes the cms blade template files including the admin templates. You can see it in /resources/views/vendor/cms.
Q: How to change the look of the pages?
A: You just need to override the published blade template files.
Q: Where is the routes.php file that handles the requests?
A: By default, routes are located in the package folder /vendor/jsdecena/cms/src/routes.php
Q: How can I override that?
A: You can override that by having your the routes in your routes.php file and the controller that will handle it.
By default, the /blog page is handled by Jsdecena\Cms\Http\Controllers\CmsController@index.
If you want to override it, you just create an entry to your routes.php file with Resource::get('/blog', ['as' => 'blog.index', 'uses' => 'CMSController@index']) where the CMSController is found in your /app/Http/Controllers/CMSController