Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Multi Auth Laravel Package

hesto/multi-auth

Hesto MultiAuth adds support for multiple authentication systems in Laravel, letting you configure separate guards, models, and tables for users, admins, or other account types, with login, registration, password reset, middleware, and Blade helpers for each.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Multi-persona access architecture: Deciding whether "admins," "customers," "vendors," or "staff" live in separate tables/models with distinct guards, versus a single user table with roles. This package bakes in the separate-identity model, so choosing it is effectively a data-model decision you will live with.
  • Build vs. buy for auth scaffolding: It substitutes for a sprint or two of custom guard/provider/middleware wiring on a Laravel 5.x codebase. Relevant when scoping "how long until our admin portal and customer portal can coexist?"
  • Roadmap sequencing for legacy platforms: For products still on Laravel 5.3–5.7, this informs whether to (a) ship multi-portal features now on the existing stack, or (b) block them behind a Laravel upgrade. It makes the "features now, upgrade later" path viable — with an explicit debt line item.
  • Portal/B2B2C expansion: Adding a reseller, partner, or back-office login surface without re-architecting the consumer-facing auth flow.
  • Segmentation and permission scoping: Each guard becomes a natural boundary for rate limits, session lifetimes, password policies, and audit trails — useful input to compliance and security requirements.
  • Buy-list evaluation: A cheap reference implementation for teams weighing heavier options (Sanctum/Passport, Bouncer, Spatie Permission, external IdPs) — useful as a comparison baseline even if ultimately rejected.

When to Consider This Package

Consider it when:

  • You own a Laravel 5.3–5.7 application and cannot upgrade soon; the package targets exactly that range.
  • You need two or more independent credential stores (separate tables, separate login routes, separate session cookies) rather than one user table with roles.
  • The team is small and Laravel-fluent; the value is scaffolded config, traits, middleware, and generators, not novel functionality.
  • You are prototyping a multi-portal product and want a working skeleton in hours, accepting that you may replace it.
  • The auth requirements are plain form login — email/password, remember-me, password reset.

Look elsewhere when:

  • You are on Laravel 8+. Multi-guard auth is native and well-documented; this package adds nothing and introduces a stale dependency. Laravel 5.7 left security support in 2019 — running it is itself the bigger risk.
  • You need SSO/SAML/OIDC, social login, MFA, or passwordless. Reach for Sanctum/Passport, Laravel Socialite, or a hosted IdP.
  • You need fine-grained permissions, teams, or invitation flows — Spatie Permission / Bouncer / Laravel Teams cover that; this package only separates identities.
  • You require active maintenance, security advisories, and modern PHP support. 440 stars and a version ceiling of 5.7 signal a dormant project; budget for forking and owning it.
  • Your architecture is API-first / SPA / mobile. Guard-based session auth is the wrong shape; token or cookie-based SPA auth is.

How to Pitch It (Stakeholders)

To executives: This is a small, free, MIT-licensed accelerator for one specific thing — letting two different kinds of users (say, staff and customers) log in to the same Laravel application through separate doors. It is not a strategic platform component; it is a shortcut that can save roughly one to two sprints of engineering on a legacy codebase and lets us ship multi-portal capability without waiting on a framework upgrade. The trade-off is explicit: it only supports Laravel 5.3–5.7, which is past end-of-life, and the project is not actively maintained. So the pitch is speed now, with a tracked upgrade cost later — I would only recommend it if we are prepared to fork and own the code, or to retire it at the next platform upgrade.

To engineering: The package gives us guard/provider configuration, auth traits, route and middleware scaffolding, and generators for additional auth systems — essentially conventional multi-guard Laravel wiring, packaged. It does not add capabilities Laravel lacks. Three things to validate before we commit: (1) confirm our framework version sits inside 5.3–5.7 and stays there for the planning horizon; (2) review the middleware and route registration for conflicts with our existing auth and CSRF setup; (3) accept ownership — vendor or fork it, pin the version, and add a test around each guard's login and password-reset path. If we are on 8.x or newer, we should implement guards natively and skip this dependency entirely.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core