Clone
3
Configuration
Matthijs Iriks edited this page 2026-12-04 05:44:01 +01:00
Table of Contents
Configuration
Publish the file with php artisan vendor:publish --tag=manager-config; it lands in config/manager.php.
| Key | Default | What it does |
|---|---|---|
path |
manager (MANAGER_PATH) |
URL prefix of the manager; route names start with manager. |
middleware |
['web', 'auth'] |
Middleware around every manager route. Login is the app's own |
user_model |
App\Models\User (MANAGER_USER_MODEL) |
The model of the people who log in; it uses HasManagerAccess |
available |
all modules | The module classes the manager knows; add your own class here |
modules |
see below | Switch per module |
media.* |
disk public, 15 GB, 40 MB per file |
Disk, total room, largest upload, allowed extensions (no SVG), rate limit |
posts.categories |
['General'] |
Categories always offered in the post form |
markdown.internal_hosts |
[] |
Hosts besides APP_URL whose links do not open in a new window |
audit.never_ban |
[] (MANAGER_NEVER_BAN) |
Addresses that are never banned: your own |
audit.max_keep_days |
90 (MANAGER_AUDIT_MAX_KEEP_DAYS) |
The longest the audit log may be kept; match your privacy policy |
audit.whole_site_bans |
off (MANAGER_AUDIT_WHOLE_SITE_BANS) |
Let a ban keep an address off the whole app (adds a global middleware) |
statistics.pages |
['/'] |
Addresses of the public site that count as a page |
statistics.posts_path |
null |
Where posts live (/blog); null: posts are not counted |
statistics.pulse_path |
pulse |
Where pages report a view |
statistics.per_minute |
120 | Reports per minute per address |
statistics.country_header |
null (MANAGER_STATISTICS_COUNTRY_HEADER) |
Request header with the country (Cloudflare: CF-IPCountry) |
statistics.count_bots |
on (MANAGER_STATISTICS_COUNT_BOTS) |
Count pages served to programs |
table_prefix |
manager_ |
Prefix of every table of the package |
tables |
[] |
A table name of its own per short name (['media' => 'site_files']) |
route_name |
manager |
Prefix of the route names, for a site that already uses manager.* |
import |
[] |
Where manager:import reads from per target |
pages.definitions |
[] |
Pages with fields, see Your own content |
resources |
[] |
Lists without code, see Your own content |
revisions |
keep 50 | Length of the history; types adds models of the site |
menu |
[] |
items changes the menu, links adds items |
simple_view |
off (MANAGER_SIMPLE_VIEW) |
A simple face of the manager next to the whole one |
extensions |
[] |
JavaScript modules of the site that add screens |
login |
[] |
checks (classes) and the Turnstile keys (MANAGER_TURNSTILE_SITE_KEY, MANAGER_TURNSTILE_SECRET) |
permissions |
groups | Where rights come from: groups, the site's roles or both |
Switching modules
| Module | Default | Env |
|---|---|---|
users |
on | |
media |
on | |
pages |
on | MANAGER_PAGES |
posts |
on | MANAGER_POSTS |
reviews |
off | MANAGER_REVIEWS |
audit |
off | MANAGER_AUDIT |
statistics |
off | MANAGER_STATISTICS |
resources |
on | |
revisions |
on | MANAGER_REVISIONS |
A module that needs another one (requires()) fails at boot when that one is off. Run php artisan migrate after switching a module on; its tables only exist from then on.
Screens and looks
| Key | Env | Default | |
|---|---|---|---|
ui |
MANAGER_UI |
package |
package (built-in screens) or none (JSON only) |
name |
MANAGER_NAME |
app name | name in the menu and on the login |
theme |
MANAGER_THEME |
dark |
what everyone sees until they choose |
user_themes |
MANAGER_USER_THEMES |
true |
each account picks its own |
themes_path |
resources/manager-themes |
JSON theme files, see Screens and themes | |
themes |
[] |
themes by key, in the config | |
middleware |
['web', 'manager.auth'] |
manager.auth is auth, but sends visitors to the manager's own login when the app has none |