This is the Content Management System on Laravel (tested - 5.5 / 5.6), made for fun.
Link to laracms dashboard:
yourhost.com/laracms
Test user (But run seeder first):
login: [email protected]
password: secret
Publish config file which stores dashboard menu points, you can add your own too:
php artisan vendor:publish --tag=laracms
You can write your own modules for laracms, check Modules folder, or check already created by me separate module - Content Module
Simple module which allows to CRUD cms users
This module allows to use translated texts directly from database in your blade files and manage them in laracms dashboard.
Click on "content" menu point or go to yourhost.com/laracms/content/
, create a new content with unique slug and translated values,
then in blade files, use Content::get($slug, $locale = null)
or helper content($slug, $locale = null)
This module allows to create a new pages with urls for your website.
Publish page layouts to make available to modify them
php artisan vendor:publish --tag=laracms_pages
Then resources/views/laracms/pages/layouts
will appear with 2 already created layouts,
You can create your own layouts in this folder and they will be automatically grabbed by laracms.
Click on "pages" menu point or go to yourhost.com/laracms/pages/
, create a new page by using unique URL, choose layout and
type some text. Now, You can see your page: yourhost.com/whatever_created_page_slug_here
Run
composer require grundmanis/laracms @dev
For authentication in dashboard, in config/auth.php
add a new guard:
'laracms' => [
'driver' => 'session',
'provider' => 'laracms_users'
]
and a new provider:
'laracms_users' => [
'driver' => 'eloquent',
'model' => \Grundmanis\Laracms\Modules\User\Models\LaracmsUser::class
]
Finally, run configuration command:
php artisan laracms:configure