illuminate/auth
Illuminate/auth provides Laravel's authentication and authorization services: session guards, user providers, password hashing, gates and policies, and remember-me support. It powers login, registration, and access control out of the box, integrating with Eloquent and middleware to secure routes and...
Architecture fit
illuminate/auth is not a standalone library; it is a read-only subtree split of laravel/framework. The correct architectural decision is to treat it as an inherited capability of the Laravel framework, not as a discrete dependency to be evaluated, versioned, or adopted on its own.Integration feasibility
Technical risk
composer.json directly. If it does — often via an IDE auto-suggest or an over-eager developer — you create a version-skew hazard where the auth component drifts from the framework. This is a governance risk, not a technical one, and belongs in engineering standards.Key questions
Stack fit
Migration path
config/auth.php (guards, providers, password reset), and wire route protection via middleware. This is a same-sprint deliverable for a competent Laravel team.Compatibility
illuminate/auth independently.Sequencing
Maintenance
composer.json to confirm illuminate/auth is absent as a direct dependency. Cheap to enforce in CI, expensive to discover during an incident.Support
Scaling
Failure modes
Auth::user() returning null without a guard check produces authorization bypass or null-dereference bugs. Mitigate with mandatory route middleware and code review standards.config/auth.php (wrong model mapping) presenting as "login doesn't work," frequently misdiagnosed as an auth bug.Ramp-up
How can I help you explore Laravel packages today?