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.

Maintainers

Package info

github.com/Net-Tech-Marek-Rode-Sp-z-o-o/laravel-identity

pkg:composer/net-code/laravel-identity

Transparency log

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.3.0 2026-07-12 16:39 UTC

This package is auto-updated.

Last update: 2026-07-12 16:44:40 UTC


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