kadevjo / fibonacci
Extension Voyager Library
Requires
- php: >=5.4.0
- guzzlehttp/guzzle: ^6.3
- illuminate/support: 4.*|5.*
- kreait/firebase-php: ^4.0
- spatie/laravel-analytics: ^3.3
- spatie/url: ^1.3
- tcg/voyager: 1.1.11
- tymon/jwt-auth: 1.0.0-rc.2
- dev-master
- v1.04
- v1.1.0
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- v0.1.19.5
- v0.1.19.4
- v0.1.19.3
- v0.1.19.2
- v0.1.19.1
- v0.1.19
- v0.1.18
- v0.1.17
- v0.1.16
- v0.1.15
- v0.1.14
- v0.1.13
- v0.1.12
- v0.1.11
- v0.1.10
- v0.1.9
- v0.1.8
- v0.1.7
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- v0.0.34
- v0.0.33
- v0.0.32
- v0.0.31
- v0.0.30
- v0.0.29
- v0.0.28
- v0.0.27
- v0.0.26
- v0.0.25
- v0.0.24
- v0.0.23
- v0.0.22
- v0.0.21
- v0.0.20
- v0.0.19
- v0.0.18
- v0.0.17
- v0.0.16
- v0.0.15
- v0.0.14
- v0.0.13
- v0.0.12
- v0.0.11
- v0.0.10
- v0.0.9
- v0.0.8
- v0.0.7
- v0.0.6
- v0.0.5
- v0.0.4
- v0.0.3
- v0.0.2
- 0.0.1
- dev-develop-v2
- dev-dev
- dev-EverCastro-patch-6
- dev-EverCastro-patch-5
- dev-EverCastro-patch-4
- dev-EverCastro-patch-3
- dev-EverCastro-patch-2
- dev-EverCastro-patch-1
This package is auto-updated.
Last update: 2025-03-08 10:53:34 UTC
README
Vendor fibonacci
To use the middlewares you will have to register them in app/Http/Kernel.php under the $routeMiddleware property:
protected $routeMiddleware = [ ... 'jwt.auth' => 'Tymon\JWTAuth\Middleware\GetUserFromToken', 'jwt.refresh' => 'Tymon\JWTAuth\Middleware\RefreshToken', ];
Add the following code to the render method within app/Exceptions/Handler.php
if ($exception instanceof Tymon\JWTAuth\Exceptions\TokenExpiredException) { return response()->json(['error'=>'token_expired'], $exception->getStatusCode()); } else if ($exception instanceof Tymon\JWTAuth\Exceptions\TokenInvalidException) { return response()->json(['token_invalid'], $exception->getStatusCode()); } else if($exception instanceof \Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException ){ return response()->json(['error'=>'token_not_found'], $exception->getStatusCode()); } }