net-code / laravel-identity
Reusable, Sanctum-based authentication for Laravel — registration, login, password reset, TOTP two-factor, invitations, and social login — built with hexagonal ports & adapters.
Package info
github.com/Net-Tech-Marek-Rode-Sp-z-o-o/laravel-identity
pkg:composer/net-code/laravel-identity
Requires
- php: ^8.5
- illuminate/auth: ^13.0
- illuminate/contracts: ^13.0
- illuminate/database: ^13.0
- illuminate/http: ^13.0
- illuminate/routing: ^13.0
- illuminate/support: ^13.0
- laravel/sanctum: ^4.3
- laravel/socialite: ^5.23
- net-code/laravel-bus: ^0.1.0
- net-code/laravel-domain: ^0.1.0
- net-code/laravel-kit: ^0.3.0
- pragmarx/google2fa: ^8.0
- spatie/laravel-data: ^4.23
Requires (Dev)
- larastan/larastan: ^3.10
- laravel/pint: ^1.27
- orchestra/testbench: ^11.0
- phpunit/phpunit: ^13.2
README
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