chuckbe/chuckcms

There is no license information available for the latest version (v0.1.33) of this package.

A lightweight Laravel CMS for easy control of a website.


README

Latest Stable Version Scrutinizer Code Quality Build Status Total Downloads

Instructions

How to use these instructions?

ChuckCMS was created to add CMS functionality to an existing Laravel project. The package will take over all incoming routes except for existing one you might have for custom functionality. ChuckCMS will work best in a fresh installation, this package is not created for adding it to existing projects.

Installation guide

Install with composer

composer require chuckbe/chuckcms

Publish public assets

php artisan vendor:publish --tag=chuckcms-public --force
php artisan vendor:publish --tag=lfm_public //Laravel Filemanager by UniSharp

Eventually publish config files

php artisan vendor:publish --tag=chuckcms-config --force

Add Permission middleware from the Spatie package

// App\Http\Kernel.php


protected $routeMiddleware = [
    ...
    'role' => \Spatie\Permission\Middlewares\RoleMiddleware::class,
    'permission' => \Spatie\Permission\Middlewares\PermissionMiddleware::class,
];

Migrate the database

php artisan migrate

Generate a new site with following command

php artisan chuckcms:generate-site

Generate all default roles and permission

php artisan chuckcms:generate-roles-permissions

Make a new super admin with following command

php artisan chuckcms:generate-super-admin

Go to http://yourapp.local/dashboard/pages

Create a new page

Generate a sitemap

php artisan chuckcms:generate-sitemap