PHPackages                             jerrygaoyang/laravel-jwt - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. jerrygaoyang/laravel-jwt

ActiveLibrary

jerrygaoyang/laravel-jwt
========================

jwt auth for encode decode and token expire\_in authenticate

v1.0.5(8y ago)443.5k↓30.9%1MITPHP

Since Nov 18Pushed 8y agoCompare

[ Source](https://github.com/jerrygaoyang/laravel-jwt)[ Packagist](https://packagist.org/packages/jerrygaoyang/laravel-jwt)[ RSS](/packages/jerrygaoyang-laravel-jwt/feed)WikiDiscussions v1.0.0 Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

laravel-jwt
===========

[](#laravel-jwt)

Installation
------------

[](#installation)

- First: Require this package with composer using the following command

> composer require jerrygaoyang/laravel-jwt

- Second: add the service provider to the providers array in config/app.php

> Jerry\\JWT\\Providers\\JWTProvider::class

- Last: publish jwt config to laravel config path

> php artisan vendor:publish --provider="Jerry\\JWT\\Providers\\JWTProvider"

Configuration
-------------

[](#configuration)

- add the JWT middleware to the routeMiddleware array in app/Http/Kenel.php

> 'jwt' =&gt; \\Jerry\\JWT\\Middleware\\JWTMiddleware::class,

- JWT config in config/jwt.php

```
