zairakai / laravel-auth
Headless authentication bridge for Laravel applications using Fortify and Sanctum
1.0.8
2026-10-15 04:31 UTC
Requires
- php: ^8.4
- laravel/fortify: ^1.41
- laravel/framework: ^12.0 || ^13.36
- laravel/sanctum: ^4.3.3
- zairakai/laravel-essentials: ^2.0.13
Requires (Dev)
- ergebnis/composer-normalize: ^2.54
- orchestra/testbench: ^10.0 || ^11.3
- phpunit/phpunit: ^12.5.39
- zairakai/laravel-dev-tools: ^4.3.1
Suggests
- ergebnis/composer-normalize: Automated composer.json normalization
Provides
None
Conflicts
None
Replaces
None
README
zairakai/laravel-auth centralizes the shared authentication runtime used by
Zairakai Laravel applications.
Documentation: laravel-auth-279d17.gitlab.io
It is intentionally headless:
- It configures
laravel/fortifyfor authentication flows. - It configures
laravel/sanctumfor shared Blade and SPA sessions. - It standardizes JSON and redirect responses for auth endpoints.
- It leaves views, domain-specific redirects, and user model details to each application.
Scope
This package is designed for Laravel 12 applications.
laravel/fortify does not currently publish Laravel 13 support, so the package
is intentionally constrained until upstream compatibility is available.
Installation
composer require zairakai/laravel-auth
Publish the configuration when application-level overrides are needed:
php artisan vendor:publish --tag=zairakai-config
Configuration
The package exposes one config file: config/laravel-auth.php.
Key areas:
fortify: shared Fortify runtime settingsfeatures: enabled Fortify featuressanctum: stateful domain and guard settingsredirects: default redirect targets for HTML requests
Testing
make quality
make test-all