illegal/insideauth
A Laravel package that adds an inside authentication flow with configurable guards, middleware, and helpers for verifying users against your own provider. Designed to drop into existing apps with minimal setup and sensible defaults.
getAuthenticator() be called without a name and fall back to the default auth guard, which signals the package is maturing toward a conventional "default + named authenticators" model. This supports a decision to standardize multi-guard authentication on this package rather than hand-rolling guard resolution per feature.addPersistentMiddleware. That is a concrete integration seam — teams can buy this instead of building custom Livewire/auth middleware wiring, which is otherwise easy to get subtly wrong (auth context lost between Livewire requests).Consider adoption when:
web, admin, api, tenant-specific guards) and guard selection logic is currently duplicated or scattered.addPersistentMiddleware.name parameter on getAuthenticator() removes repetitive explicit guard naming for the common default case.Look elsewhere when:
For executives: This is a small, low-cost Laravel dependency that removes custom authentication plumbing, particularly for apps with multiple user types and Livewire-based interfaces. The latest release (v0.2.13) makes the common case simpler and closes a real integration gap with Livewire, reducing a class of auth bugs that otherwise surfaces late in QA or in production. Risk is contained: it is pre-1.0, so we recommend a time-boxed pilot behind an internal wrapper, pinned versions, and a fallback to native Laravel auth if the package stalls.
For engineering: v0.2.13 adds two useful capabilities — getAuthenticator() now defaults to the auth guard when no name is supplied, cutting boilerplate, and the package exposes the list of authentication classes it manages, which can be passed to Livewire's addPersistentMiddleware so guard context survives component requests. Proposed approach: adopt behind a thin internal adapter, pin the minor version, add a smoke test covering default-guard resolution and Livewire persistent middleware, and track upstream toward 1.0 before broadening usage. Build-vs-buy verdict: buy for multi-guard + Livewire scenarios; defer for single-guard apps.
How can I help you explore Laravel packages today?