env('MANAGER_PATH', 'manager'), /* | Middleware around every manager route. Authentication of the manager itself | is left to the host app: use the guard it already has. */ 'middleware' => ['web', 'auth'], /* | The Eloquent model of the people who log in. Must use IriksIT\Manager\Concerns\HasManagerAccess. */ 'user_model' => env('MANAGER_USER_MODEL', 'App\\Models\\User'), /* | The modules this manager knows. Add your own class here to give a site its own part. */ 'available' => [ Modules\Users\UsersModule::class, Modules\Media\MediaModule::class, Modules\Pages\PagesModule::class, Modules\Posts\PostsModule::class, Modules\Reviews\ReviewsModule::class, Modules\Audit\AuditModule::class, ], /* | Switch a part on or off per site. A key left out falls back to the default of the | module: users and media are on, everything else is off. A module that is off has no | routes, no tables (its migrations are not loaded), no menu item and no permissions. */ 'modules' => [ 'users' => true, 'media' => true, 'pages' => env('MANAGER_PAGES', true), 'posts' => env('MANAGER_POSTS', true), 'reviews' => env('MANAGER_REVIEWS', false), 'audit' => env('MANAGER_AUDIT', false), ], /* | The media library. Files live on a Laravel filesystem disk; each media row remembers | its own disk, so a file stays where it was uploaded when `disk` changes later. */ 'media' => [ 'disk' => env('MANAGER_MEDIA_DISK', 'public'), // How much room the library has in total, in GB. An upload that would go over it is refused. 'max_total_gb' => (float) env('MANAGER_MEDIA_MAX_TOTAL_GB', 15), // Largest single upload in MB. PHP and the web server must allow it too // (upload_max_filesize, post_max_size, client_max_body_size). 'max_file_mb' => (int) env('MANAGER_MEDIA_MAX_FILE_MB', 40), // File extensions the library accepts. SVG is deliberately missing: it can carry scripts. 'extensions' => ['jpg', 'jpeg', 'png', 'webp', 'gif', 'pdf', 'mp4', 'webm'], // Visitors loading files per minute per address (the `media-files` rate limiter). 'per_minute' => 600, ], /* | Posts. `categories` are always offered in the post form, next to the ones in use and the | ones made by hand; a site can offer more through PostLabels::suggestCategories(). */ 'posts' => [ 'categories' => ['General'], ], /* | Markdown in posts: hosts besides APP_URL whose links do not open in a new window. */ 'markdown' => [ 'internal_hosts' => [], ], /* | The audit log and the bans (module `audit`). */ 'audit' => [ // Addresses that are never banned, by hand or by themselves: your own, so a slip or a rule // that is too strict never locks you out. Comma-separated in MANAGER_NEVER_BAN. 'never_ban' => array_values(array_filter(array_map('trim', explode(',', (string) env('MANAGER_NEVER_BAN', ''))))), // The longest the log may be kept, in days. Set it to what your privacy policy promises. 'max_keep_days' => (int) env('MANAGER_AUDIT_MAX_KEEP_DAYS', 90), // Let a ban "for the whole site" work: the middleware then runs on every request of the app. 'whole_site_bans' => (bool) env('MANAGER_AUDIT_WHOLE_SITE_BANS', false), ], /* | Prefix for the tables of the package. */ 'table_prefix' => 'manager_', ];