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

Auth For Laravel Laravel Package

roundly-consulting/auth-for-laravel

A Laravel authentication package that streamlines login, registration, password resets, and user management with sensible defaults, configurable guards, middleware, routes, and views. It integrates cleanly into existing apps to help you ship secure authentication faster.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

  • Architecture fit: Laravel-native authentication package that extends framework auth with guard scaffolding, a users-table schema macro ($table->authenticationColumns()), published migrations, and model factories. Fits applications using Eloquent-backed, multi-guard authentication and Laravel’s migration/factory conventions. Release 1.2.2 is a patch-level fix, not an architectural change.
  • Integration feasibility: Standard Composer installation with Laravel package auto-discovery expected. Teams publish auth config/migrations, run authentication:guard migrations per guard, and use shipped factories in tests. Static-analysis integration is supported through a PHPStan extension, auto-loaded by phpstan/extension-installer or manually included via extension.neon.
  • Technical risk: Low to moderate. Runtime risk is limited; most risk sits in CI/static-analysis and package-development environments where the service provider may not boot during analysis, causing false “undefined method” errors for the schema macro. The factory fix reduces test fragility when a host application swaps the configured user model.
  • Key questions: Which Laravel/PHP versions are supported? Is provider auto-discovery assumed in all environments? Are package factories intended for host-app test suites or only package development? How does the schema macro behave against existing users tables and custom user models? What is the security review posture for guard generation? Are Larastan/PHPStan versions constrained? What is the upgrade guidance from earlier 1.x releases?

Integration Approach

  • Stack fit: Best fit for Laravel applications using guard-based authentication, Eloquent user models, published migrations, and PHPUnit/Pest factories. Compatible with Larastan/PHPStan CI pipelines when the extension is loaded.
  • Migration path: Upgrade via Composer to 1.2.2; no data migration is indicated by the release notes. Re-run static analysis and the test suite, then validate authentication:guard migrations in staging. For new installs: require the package, publish auth config/migrations, generate guard migrations, run migrations, and wire factories where needed.
  • Compatibility: Auto-loading of the PHPStan extension depends on phpstan/extension-installer; without it, explicitly include vendor/roundly-consulting/auth-for-laravel/extension.neon. Testbench, dont-discover, and manually registered providers require extra care because the schema macro only exists after provider boot.
  • Sequencing: 1) Update dependency and confirm provider registration. 2) Run PHPStan/Larastan and resolve extension-include issues. 3) Run tests, especially factory/model-swap cases. 4) Run migrations in a staging environment. 5) Deploy. Document the manual extension include for teams not using the installer.

Operational Impact

  • Maintenance: Low. This is a patch release with targeted fixes; no deprecations or breaking changes are indicated. Pin the package version and monitor future minor/major releases for Laravel/PHP support changes.
  • Support: Teams need clear documentation for the PHPStan extension, especially when using dont-discover, manual provider registration, or Testbench. The factory fix reduces support noise for applications that override the user model.
  • Scaling: No runtime scaling concerns from this release. Guard-based auth scales with the host application’s existing auth architecture. Static-analysis overhead is minor but should be accounted for in CI.
  • Failure modes: The primary failure mode is “Call to an undefined method” for authenticationColumns() when migrations are analyzed without the provider booted. Secondary risk is CI failure when the PHPStan extension is neither auto-loaded nor manually included. Factory model-swap issues are addressed in 1.2.2.
  • Ramp-up: Laravel developers should ramp up quickly. TPM should ensure onboarding covers the guard-generation command, the schema macro, factory usage, and the PHPStan extension include path for environments where auto-discovery is unavailable.
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.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
cgv/localized-resource