2
Installation
lil-koneko edited this page 2026-12-04 04:10:46 +01:00

Installation

Needs PHP 8.4 and Laravel 13.

composer require iriks-it/laravel-manager
php artisan vendor:publish --tag=manager-config
php artisan migrate
  1. Put IriksIT\Manager\Concerns\HasManagerAccess on the User model of the app. Keep is_super_admin out of $fillable.
  2. Set manager.user_model (env MANAGER_USER_MODEL) when the model is not App\Models\User.
  3. Make the first account, a super admin: php artisan manager:create-user. It is the only way to make one.
  4. Open /manager (change it with MANAGER_PATH). The package brings its own screens, a login and a profile; an app that has a route named login keeps using its own.

With an AI agent

php artisan manager:install --modules=users,media,posts --user-model="App\Models\User"
php artisan config:clear && php artisan migrate && php artisan storage:link
php artisan manager:doctor --json

manager:doctor checks the user model and trait, the tables of the active modules, the routes, the login, a super admin, the media disk and (with audit on) the proxy setup. Each problem has a fix; the exit code is non-zero on a failure. The guide for an agent is resources/ai/INTEGRATION.md in the package (tested with a fresh agent that only had that file), and resources/boost/guidelines/core.blade.php is read by Laravel Boost.

The screens: see Screens and themes. MANAGER_UI=none leaves only the JSON routes.

Behind a proxy: set up trusted proxies before switching on the audit log, or every visitor looks like one address.