# iriks-it/laravel-manager A modular backend for Laravel sites. Install it, switch on the parts the site needs, done. ```bash composer require iriks-it/laravel-manager php artisan vendor:publish --tag=manager-config php artisan migrate ``` Put `IriksIT\Manager\Concerns\HasManagerAccess` on the `User` model. The manager lives at `/manager` (`MANAGER_PATH`) behind the `web` and `auth` middleware (`config/manager.php`). ## Modules | Key | What | Default | |---|---|---| | `users` | Accounts, groups and permissions | on | | `media` | Media library | on | | `pages` | Page texts | on | | `posts` | Posts | on | | `reviews` | Reviews | off | Switch a part in `config/manager.php` (`modules`) or with `MANAGER_PAGES`, `MANAGER_POSTS`, `MANAGER_REVIEWS`. A module that is off has **no routes, no tables, no menu item and no permissions**: its migrations are not loaded at all. A module that needs another one (`requires()`) fails at boot when that one is off. ## Your own module Implement `IriksIT\Manager\Contracts\Module` (or extend `Modules\BaseModule`), keep `routes.php` and a `migrations/` folder next to the class, and add the class to `available` in the config. ## State of this first version Done: module registry and switches, permissions per module as gates, groups, super admin, routes and migrations per module, a menu that shows only what an account may reach, tests (`composer test`). Not done yet, on purpose: the screens. The modules answer with JSON; the frontend (the Inertia/Vue screens of bouwbedrijf.iriks-it.nl, or something the package ships itself) is the next decision, see `AGENTS.md`.