wisoot / jwt-guard
Laravel Guard Driver using JSON Web Token (JWT)
Installs: 703
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 3
Open Issues: 0
pkg:composer/wisoot/jwt-guard
Requires
- php: >=5.6
- firebase/php-jwt: 4.0.*
- laravel/framework: >=5.2
Requires (Dev)
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~4.0
README
Jwt Guard is alternative Laravel 5.2 Guard Driver which is implemented using JSON Web Token (JWT)
The MIT License (MIT). Please see License File for more information.
Install
To install this package you will need:
- Laravel 5.2
- PHP 5.6+
Via Composer
$ composer require wisoot/jwt-guard
Add the Service Provider
Open config/app.php and, to your providers array at the bottom, add:
WWON\JwtGuard\Providers\JwtGuardServiceProvider::class
Publish config file and database migration
php artisan vendor:publish --provider="WWON\JwtGuard\Providers\JwtGuardServiceProvider"
Update jwt.php config to suit your project, run the migration, then you are good to go.
Usage
In config/auth.php config file you have access to jwt driver.