mpyw/scoped-auth
Scoped authentication for Laravel: assign different guards and user providers to individual route groups, domains, or tenants so Auth resolves the correct user per context. Handy for multi-tenant and multi-domain apps needing per-scope login without global config changes.
[Claude]) — worth tracking as a supply-chain/maintenance dependency rather than a load-bearing framework choice.Adopt when:
Look elsewhere / skip when:
spatie/laravel-permission + policies; this package answers "who is logged in for this scope," not "what may they do."Release-specific read on v2.1.1: patch release, no breaking changes, no deprecations. Changes are CI matrix expansion (PHP 8.5), a Fortify documentation fix, and Laravel 14 support. Nothing alters runtime behavior on existing versions — safe to take on a routine dependency bump. Notable as evidence of health: the maintainer tracks new Laravel/PHP releases quickly, which de-risks your own upgrade calendar. Notable as evidence of concentration: all three PRs are AI-assisted and merged by the same person.
For executives (one paragraph): This is a small, low-cost component that lets us support customers who belong to multiple organizations without their logins bleeding across accounts. The alternative is roughly a quarter of engineering work on custom authentication code plus permanent security-ownership overhead. The package is actively maintained, already supports our next Laravel and PHP upgrades, and this release is a compatibility-only patch with no breaking changes — so it is a cheap option on a capability we will likely need, not a bet.
For engineering (the honest version): It extends Laravel's native guard rather than replacing it, so the blast radius is small and reversible — expect a contained integration behind our existing auth layer, with a documented fallback of a custom guard if we ever need to drop it. v2.1.1 is a no-risk bump: PHP 8.5 in CI, a Fortify docs correction, and Laravel 14 support. Caveats to accept explicitly: single maintainer, AI-assisted contributions, and a narrow scope — it does not solve authorization, so pair it with policies and keep RBAC decisions in our own code. Ask: pin the minor version, add it to the dependency-review list, and treat any future major as a planned migration.
How can I help you explore Laravel packages today?