wisoot/jwt-guard

Laravel Guard Driver using JSON Web Token (JWT)
703 6
Install
composer require wisoot/jwt-guard
Latest Version:v0.7.2
PHP:>=5.6
License:MIT
Last Updated:Jul 1, 2017
Links: GitHub  ·  Packagist
Maintainer: wisoot

Jwt Guard

Author Latest Version on Packagist Software License Quality Score Total Downloads

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.