Download the PHP package codeforyou/laravel-jwt without Composer
On this page you can find all versions of the php package codeforyou/laravel-jwt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-jwt
codeforyou-laravel-jwt
Installation
-
First: Require this package with composer using the following command
-
Second: add the service provider to the providers array in config/app.php
- Last: publish jwt config to laravel config path
Configuration
-
add the JWT middleware to the routeMiddleware array in app/Http/Kenel.php
- JWT config in config/jwt.php
User Guide
http api process for laravel
-
First: http request must have header
-
Second: laravel route use middleware jwt
- Last: other function can be used in your laravel controller
Exception (global for api)
you can copy below code to your Laravel app/Exceptions/handler.php render function;
it's easy to change the token exception for us;
it's easy to change the return data for api response.
of course, we should:
All versions of laravel-jwt with dependencies
PHP Build Version
Package Version
The package codeforyou/laravel-jwt contains the following files
Loading the files please wait ....