Example standard installation of the Laravel CMS.
CMS packages installed
- Laravel CMS Core
- Laravel CMS Auth
- Laravel CMS Theme
- Laravel CMS ACL Module
- Laravel CMS Models Module
- Laravel CMS File Upload Module
Application packages used
The master branch has the latest version of Laravel.
For examples of older Laravel versions, check out the branch specific for that version.
Besides the normal procedure for getting a laravel installation running (composer install), follow these additional steps:
If you have Docker, the Makefile will help you get set up quickly.
-
To compose the application, migrate and seed it, simply run:
make
This may take some time.
-
Optionally, to speed things up, run:
make cache
This will cache CMS information, Laravel config & routes.
Your application will then run on http://localhost:8000/cms if all went well.
-
First, set up the
.envfile by running:make env
Or make an
.envfile manually. Don't forget to set up app key usingphp artisan key:generate. -
Run the CMS migrations:
php artisan cms:migrate
-
Run the database seeder:
php artisan db:seed
Three user accounts will be ready to use:
- A super-admin:
super@admin.com, password:'secret'. - A user with editing, but not delete permissions:
some@editor.com, password:'secret'. - A guest user with only viewing permissions:
some@guest.com, password:'secret'.
- A super-admin:
-
Optionally, create a custom super-admin account:
php artisan cms:user:create <name> <password> --admin
-
Optionally, to speed things up, cache some data:
php artisan cms:menu:cache php artisan cms:models:cache php artisan config:cache php artisan route:cache
After this, the application should be ready.
The relative path to the CMS is /cms, f.i. as: http://laravel-cms-example.dev/cms.
The example application combines a simple product catalog structure with a blog.
The models are generally designed to showcase different model fields.
Note that this is not even really an application, but just the database structure and models that could be used to make a real application.
It serves merely as an illustration for the implementation of the CMS.