Installation

Latest Stable Version Total Downloads


Table of contents

  1. Installation
    1. Requirements
    2. Composer
    3. Publish assets and config
    4. Packages
      1. unisharp/laravel-filemanager package
      2. spatie/laravel-permission package
    5. Migration
    6. Routes
    7. New site
    8. Generate default roles and permission
    9. Generate super admin
    10. Visit http://yourapp.local/dashboard/pages
    11. Create a new page
    12. Generate a sitemap

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 .env file.

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

This site uses Just the Docs, a documentation theme for Jekyll.