-
Require jwt-auth package with composer
composer require tymon/jwt-auth:dev-develop --prefer-source
-
Add Service provider in config/app.php
'providers' => [ Tymon\JWTAuth\Providers\LaravelServiceProvider::class ],
-
Generate JWT KEY in .env file.
php artisan jwt:secret
-
Add Middlewares to /app/Http/Kernel.php
'jwt.auth' => \Tymon\JWTAuth\Middleware\GetUserFromToken::class, 'jwt.refresh' => \Tymon\JWTAuth\Middleware\RefreshToken::class,
-
Model data on: https://medium.com/@experttyce/c%C3%B3mo-crear-un-api-rest-con-laravel-5-7-y-jwt-token-94b79c533c6d
-
Notifications
You must be signed in to change notification settings - Fork 0
gastonestevez/SistemaInversiones
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Webapp para Sistema Inversiones
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published