laravel-identity maintained by net-code
Description
Reusable, Sanctum-based authentication for Laravel — registration, login, password reset, TOTP two-factor, invitations, and social login — built with hexagonal ports & adapters.
Last update
2026/07/12 18:39
(dev-main)
License
Downloads
0
Tags
net-code/laravel-identity
Reusable, Sanctum-based authentication for Laravel — users, registration, login and
sessions, built with hexagonal ports & adapters. Authorization (roles/permissions) is a
separate concern → net-code/laravel-access.
composer require net-code/laravel-identity
php artisan migrate
docs/usage.md— install, config, ports, wiring.docs/flows.md— the end-to-end flows.
v1 scope
Register · login · logout / logout-all · /me · password reset · TOTP two-factor (enable/confirm/
disable, recovery codes, login challenge) · invitations (invite / accept / revoke, typed acceptance
hook) · social login & account linking (Socialite behind a port, verified-email-only auto-link) ·
the CurrentUser port. Realm-aware schema (single realm by default).
License
MIT