New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

helori/laravel-cms

Configurable CMS backend for Laravel
259 5
Install
composer require helori/laravel-cms
Latest Version:2.0.10
Laravel:11 · 12 · 13
License:MIT
Last Updated:Dec 16, 2025
Links: GitHub  ·  Packagist
Maintainer: Helori

laravel-cms

Installation and setup

laravel new my-project cd my-project

Install Laravel Santum (API)

php artisan install:api
php artisan config:publish cors

Modify your .env file using your project name as follows :

SESSION_DOMAIN=".my-project.test"
SANCTUM_STATEFUL_DOMAINS="my-project.test"

Modify your bootstrap/app.php file :

->withMiddleware(function (Middleware $middleware) {
    $middleware->statefulApi();
})

Modify your config/cors.php as follows :

'supports_credentials' => true,

Install Laravel CMS

composer require helori/laravel-cms

# This will create migrations for medias and updated users table
php artisan vendor:publish --tag=laravel-cms-migrations

# This will publish the app\Cms folder containing your CMS config :
php artisan vendor:publish --tag=laravel-cms-config

# This will publish the project's default config files for npm dependencies, tailwind, vite and postcss
php artisan vendor:publish --tag=laravel-cms-assets-setup --force

# This will publish sources files for the admin application
php artisan vendor:publish --tag=laravel-cms-assets-admin --force

# This will publish boilerplate files for the website (be careful when using --force to overwrite !)
php artisan vendor:publish --tag=laravel-cms-assets-website --force
npm i
npm run dev

Modify your bootstrap/app.php file :

->withMiddleware(function (Middleware $middleware) {
    $middleware->redirectGuestsTo('/login');
    $middleware->redirectUsersTo('/admin');
})

Create a user :

php artisan tinker
App\Models\User::create([
    'firstname' => 'John',
    'lastname' => 'Doe',
    'name' => 'John Doe',
    'email' => 'john@doe.com',
    'password' => bcrypt('password'),
]);
exit;

Related Packages

ems/cmsable

A library to build cms-powered applications with laravel

9,351 1
arikaim/db

Arikam CMS database package

1,384 1
theprivateer/fabric

Fabric CMS base framework

239 0
clumsy/share

A plugin to create share links on the fly directly on the view

230 0
kaleidoscope/factotum

Laravel-based CMS baked by Kaleidoscope Srl

214 9

Version History

Version Released PHP License
2.0.10 MIT
v2.0.9 MIT
2.0.8 MIT
2.0.7 MIT
2.0.6 MIT