Skip to main content

Overview

This tutorial builds a complete auth system: registration, login, role-based access, and password reset — using IlanaORM models, mutators, and scopes.

1. Migration

Already know your schema? Run npx ilana make:model User --migration to scaffold both files at once and skip straight to Step 2.
create_users_table
create_password_reset_tokens_table

2. User Model

3. Registration

4. Login

5. Auth Middleware

Usage:

6. Password Reset

7. Email Verification

Summary