Skip to content
cms / 1.0.0

Introduction

Last updated:

On this page

CMS

javaabu/cms is a complete CMS for Laravel. It doesn't reimplement content, menus or widgets: it assembles finished Javaabu packages, sets them up the same way, and adds what ties them into a site.

You get From
Pages at the site root (/about), and news with categories and tags javaabu/post-types, with javaabu/block-editor content, javaabu/mediapicker media and javaabu/meta fields
Header and footer menus javaabu/dynamic-menubuilder
Sidebar and footer widgets, plus recent-posts and categories widgets javaabu/widgets
A "Site" settings page: name, tagline, front page, footer text javaabu/settings
Roles and permissions for any guard javaabu/permissions
An admin dashboard and navigation that follows each user's permissions this package
A public theme, in Blade and Inertia React this package
php artisan cms:install with starter content in English and Dhivehi this package
php artisan cms:import-v1 for sites on v1 this package

Everything renders with Blade (javaabu/forms) or Inertia React (@javaabu/forms and Onu), chosen with one config option. With javaabu/translatable installed, content, menus, widgets and settings are translatable, and the theme gets a language switcher.

composer require javaabu/cms
php artisan cms:install
// routes/web.php
Route::middleware('web')->group(function () {
    Route::cmsAdmin(['guard' => 'web_admin', 'prefix' => 'admin', 'name' => 'admin.']);

    // Your own routes here

    Route::cms(); // last: pages live at /{slug}
});

Then give your admin role view_dashboard and the content permissions, and open /admin.

Next: Requirements, then Installation & Setup. Upgrading a v1 site? Read Upgrading from v1.

Documentation
All packages

javaabu/cms

Source on GitHub