Installation
Table of contents
Requirements
This package requires PHP 8.2 or higher and Laravel 10, 11, 12 or 13 (Laravel 13 needs PHP 8.3 or higher).
Composer
You can install the package via composer:
composer require chuckbe/chuckcms
Publish assets and config
You can now publish all assets and config files this package needs:
php artisan vendor:publish --provider="Chuckbe\Chuckcms\ChuckcmsServiceProvider"
Packages
unisharp/laravel-filemanager package
You can now publish assets for unisharp/laravel-filemanager:
php artisan vendor:publish --tag=lfm_public
spatie/laravel-permission package
You can now publish migrations and config file for spatie/laravel-permission:
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
There is no need to add the middleware for this package. It is already being loaded by ChuckCMS.
Migration
You can now run migrations:
php artisan migrate
Make sure you’ve added DB credentials to your
.envfile.
Routes
You can now add the routes for this package:
Chuck::auth();
Chuck::routes();
Chuck::frontend();
New site
You can now generate a new site with the following command:
php artisan chuckcms:generate-site
Generate default roles and permission
php artisan chuckcms:generate-roles-permissions
Generate super admin
php artisan chuckcms:generate-super-admin
Visit http://yourapp.local/dashboard/pages
Create a new page
Generate a sitemap
php artisan chuckcms:generate-sitemap

