Download the PHP package authava/laravel without Composer
On this page you can find all versions of the php package authava/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download authava/laravel
More information about authava/laravel
Files in authava/laravel
Package laravel
Short Description Laravel integration for Authava authentication service
License MIT
Informations about the package laravel
Authava Laravel Client
A Laravel integration package for the Authava authentication service.
Installation
You can install the package via composer:
Configuration
-
Publish the configuration file:
- Add your Authava configuration to your
.envfile:
Basic Usage
Protecting Routes
Add the middleware to your routes:
User Synchronization
If you want to automatically sync Authava users with your local database, use the EnsureUserExists middleware:
Using the Facade
Direct Usage
If you prefer dependency injection:
User Synchronization
The package provides two approaches for user synchronization:
1. Middleware Approach
Use the EnsureUserExists middleware to automatically sync users:
2. Manual Synchronization
Implement your own user synchronization logic:
Configuration Options
Session Caching
The package caches session data to reduce API calls. Configure the TTL in your .env:
User Model Mapping
Configure how Authava user fields map to your user model:
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Authava
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel with dependencies
guzzlehttp/guzzle Version ^7.0
illuminate/support Version ^9.0|^10.0
illuminate/contracts Version ^9.0|^10.0