Download the PHP package exodusanto/laravel-concierge without Composer
On this page you can find all versions of the php package exodusanto/laravel-concierge. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download exodusanto/laravel-concierge
More information about exodusanto/laravel-concierge
Files in exodusanto/laravel-concierge
Package laravel-concierge
Short Description Api token authentication for laravel projects
License MIT
Homepage https://github.com/exodusanto/laravel-concierge
Informations about the package laravel-concierge
Laravel concierge
Extend the base solution from Laravel with some new features
- Auto refresh user token on
GET
requests - Refresh/Revoke methods
- Blade directive
Installation
You can install the package via composer:
Usage
1. Migration
Migrate your user table with api_token
and api_token_refreshed_at
.
api_token_refreshed_at
This attribute is use to store the timestamp of api_token
update
2. Model
Add RefreshApiToken
trait and RefreshApiTokenContract
contract to your model
3. Config
Publish concierge config
Use the same key to identify the right model in auth.providers
and concierge.tokens_lifetime
4. Middleware
Append RefreshApiToken
to your application web
middleware group
@Concierge
Concierge is shipped with a custom Blade directive, it will render the token of the authenticated user
@Concierge options
@concierge($guard, $attributeName)
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Antonio Dal Sie
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.
All versions of laravel-concierge with dependencies
ext-json Version *
doctrine/dbal Version ^2.10
illuminate/support Version ^6.0|^7.0|^8.0|^9.0