voorhof / cms
Laravel CMS scaffolding using the Bootstrap frontend toolkit and Blade templating engine.
Requires
- php: ^8.2
- illuminate/console: ^12.0
- illuminate/filesystem: ^12.0
- illuminate/support: ^12.0
- spatie/laravel-permission: ^6.20
- symfony/console: ^7.0
Requires (Dev)
- laravel/framework: ^12.0
- orchestra/testbench-core: ^10.0
- phpstan/phpstan: ^2.0
This package is auto-updated.
Last update: 2025-07-15 17:49:56 UTC
README
This is a basic CMS template for Laravel using Bootstrap 5 as the frontend toolkit.
It includes routes, controllers, views, ... for User and Role management,
together with an example Post model and all CRUD functionality.
Installation
You can install the package via composer.
composer require voorhof/cms
Run this command to install the basic CMS structure,
it will copy all necessary resource files to your app and update existing ones (a backup option is available).
After installation, the database will automatically be refreshed and seeded with factory data.
php artisan cms:install
Under the hood Laravel Permission from Spatie is used for assigning roles.
You may want to publish the config file for editing.
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
Although it is not required for installation, a basic user auth scaffolding for registering, login,... should be present in the app.
If you don't have an auth starter kit already installed, Voorhof Bries is also available in this CMS package.
When you choose to use Bries, be sure to execute this artisan command BEFORE cms:install
php artisan bries:install
Testing
After installation there will be new test files present in the app,
be sure to run composer test to make sure everything is working a expected.
php artisan test
Credits
License
The MIT License (MIT). Please see License File for more information.