Download the PHP package quvel/auth without Composer
On this page you can find all versions of the php package quvel/auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package auth
Quvel Auth
API-first authentication package that extends Laravel Fortify with JSON responses, OAuth support, and enhanced features. Uses Fortify 1:1 with minimal overrides via container bindings.
Philosophy
This package wraps Laravel Fortify with quality-of-life improvements:
- API-First Responses - Returns JSON with user data instead of redirects
- OAuth/Socialite Integration - Social login with secure nonce-based flow
- Zero Configuration - Auto-discovers and binds overrides via service provider
- Fortify Compatible - Use standard
config/fortify.phpto enable/disable features
Installation
1. Install Fortify and Sanctum
2. Install Quvel Auth
That's it. The package auto-discovers and registers its service provider.
3. Configure Fortify
Edit config/fortify.php:
4. Publish Migrations (Optional)
How It Works
Quvel Auth uses Laravel's container to override Fortify's default implementations:
When Fortify's controllers run, they resolve these contracts from the container and get our implementations. No route overrides needed.
Routes
Fortify provides core routes (login, register), we provide the rest:
API Responses
All responses are JSON with consistent structure:
Login Success (no 2FA):
Login Requires 2FA:
Registration:
Configuration
Fortify Features
Enable/disable features in config/fortify.php:
Socialite (OAuth)
Configure providers in config/services.php:
Disable OAuth in config/quvel-auth.php:
Rate Limiting
Automatically configured (5 requests/minute for login and 2FA). Override in your AppServiceProvider if needed:
Customization
Override Response Classes
Create your own response:
Bind in your AppServiceProvider:
Override Actions
Same pattern for actions:
Advanced: Publish Routes
For full route customization:
Then disable package routes in config/quvel-auth.php:
Troubleshooting
Routes not showing?
Check that Fortify features are enabled and views => false.
Rate limiter errors? Clear config cache:
Need to customize?
Check AuthServiceProvider@registerFortifyOverrides() to see all container bindings.
License
MIT