Shield keeps its roles in a config file. Rolewarden moves them to the database and gives your client a panel to manage them. Shield stays, its tables untouched.
public array $matrix = [
'admin' => ['users.*', 'invoices.approve'],
'user' => ['invoices.view'],
];
if (auth()->user()->can('invoices.approve')) {
// the answer comes from the database
}
Your app is in production, with its own groups and users. The wizard reads them, asks six questions, and tells you what each answer will do before anything changes.
Nothing is written until you confirm. Then it applies in a safe order: migrations, roles, super admin, filters, wiring. Every config file it edits is shown as a diff, backed up, syntax-checked and logged. Interrupted halfway, it resumes where it stopped.
One matrix per role. Roles inherit from a parent, and a single user can be granted or denied one permission without inventing a new role.
Five marks, told apart by shape: granted, inherited, granted for one user, denied for one user, not granted. A denial beats every role, super admin included.
Try the matrix in the live demoFreelance developers and small agencies who ship CodeIgniter 4 applications to clients, and want a permission layer that is in place on day one and that the client manages without calling them.
Applications on Ion Auth, Myth:Auth or a home-made login: they have to move to Shield first. Multi-tenant apps: roles are global to the application.
The demo ships a small document register with Reader, Author and Approver accounts. Data resets every hour.