1
Writing your own module
Matthijs Iriks edited this page 2026-12-04 03:23:25 +01:00

Writing 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.

A module can add, next to its routes and migrations:

  • permissions(): the rights it adds, as Permission objects (a right can need another right);
  • navigation(): menu items;
  • actions() and views(): what the audit log calls its routes (a test fails on a manager route without a name);
  • middleware(): middleware around every manager route, before or after the site's own;
  • commands() and boot().