gingerminds / laravel-cms
CMS functionalities for Laravel projects
2.6.3
2026-08-04 13:57 UTC
Requires
- php: ^8.4
- gingerminds/laravel-core: ^4.2
- gingerminds/laravel-media-manager: ^6.3
- gingerminds/laravel-multisite: ^2.8
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- larastan/larastan: ^3.8
- orchestra/testbench: ^10.0
- phpdocumentor/type-resolver: ^1.8
- phpstan/phpstan: ^2.0
- rector/rector: ^2.0
- squizlabs/php_codesniffer: ^3.0
README
Menus, pages, and a WYSIWYG editor for Laravel projects built on gingerminds/laravel-core and gingerminds/laravel-multisite. It provides:
MenuandMenuItemmodels — site-scoped, with translatable menu items (name, URL, description per language).- An admin CRUD for menus with a drag-and-drop tree UI for reordering items.
PageandPageCategorymodels — site-scoped, translatable, with nested categories, optional page-category assignment, and a precomputed per-language URL index (PageUrl) kept automatically in sync.- An admin CRUD for pages and page categories, including a "choose category" tree modal shared with
laravel-media-manager's look. - A content block system for
PageTranslation::content(schema-driven blocks, extensible/overridable per project), with a reference "Title + Text" block. - A TipTap-based WYSIWYG editor Blade component, with configurable toolbar presets.
- A read-only API exposing menus and their active item tree, plus pages (by id, by path, or by code).
Requirements
- PHP ^8.4
gingerminds/laravel-core^3.0gingerminds/laravel-multisite^2.2
Quick start
composer require gingerminds/laravel-cms php artisan vendor:publish --tag=gingerminds-cms-config php artisan vendor:publish --tag=gingerminds-assets php artisan migrate
Then register the package's models with API Platform (see Installation) and install the required npm packages (TipTap, SortableJS).
Documentation
- Installation
- Configuration
- Components — the WYSIWYG editor
- Menus — models, admin screens, drag-and-drop reordering
- Pages — models, home-page semantics, admin screens, filters
- Blocks — content block contract, registry, admin editing flow
- API — admin routes and API Platform endpoints