keys of modules this one cannot work without */ public function requires(): array; /** * Permissions this module adds. Values are prefixed by the module key. * * @return list */ public function permissions(): array; /** @return list */ public function navigation(): array; /** Absolute path of the routes file, or null. */ public function routes(): ?string; /** Absolute path of a routes file outside the manager (no prefix, no manager middleware), or null. */ public function publicRoutes(): ?string; /** Absolute path of the migrations folder, or null. */ public function migrations(): ?string; /** @return list Artisan commands this module adds */ public function commands(): array; /** * What the audit log calls each thing that is done through this module's routes, by route * name without the `manager.` prefix: `[label]` or `[label, [form fields that may be kept]]`. * Never list a field a secret could be typed in. * * @return array}> */ public function actions(): array; /** * What the audit log calls opening a page (a GET route), by route name without `manager.`. * * @return array */ public function views(): array; /** * Middleware this module wants around every manager route: `before` runs ahead of the site's * own manager middleware (session, login), `after` behind it. * * @return array{before?: list, after?: list} */ public function middleware(): array; /** Runs at boot, only when the module is on (register rate limiters, usage sources, ...). */ public function boot(): void; }