Looking to hire Laravel developers? Try LaraJobs

laravel-jwt maintained by ammadeuss

Description
Laravel wrapper for the lcobucci/jwt package
Last update
2017/03/14 06:09 (dev-dev)
License
Downloads
26

Comments
comments powered by Disqus

laravel-jwt

Laravel wrapper for the lcobucci/jwt package

Instalation

Require this package with composer:

composer require ammadeuss/laravel-jwt

You need to add the service provider in app.php

Ammadeuss\LaravelJwt\ServiceProvider::class,

If you want to use the facade, add these to your facades in app.php

'Jwt' => Ammadeuss\LaravelJwt\JwtFacade::class,
'JwtValidation' => Ammadeuss\LaravelJwt\JwtValidationFacade::class,

Usage

$token = Jwt::createBuilder()->with('uid', 1);