@@ -9,13 +9,10 @@ |
||
| 9 | 9 | |
| 10 | 10 | namespace App\Http\Controllers; |
| 11 | 11 | |
| 12 | -use App\Models\User; |
|
| 13 | 12 | use App\Models\Article; |
| 14 | 13 | use App\Services\TokenAuth; |
| 15 | -use Illuminate\Contracts\Events\Dispatcher; |
|
| 16 | 14 | use Illuminate\Contracts\View\View; |
| 17 | 15 | use Illuminate\Contracts\Auth\Guard; |
| 18 | -use Tymon\JWTAuth\Providers\JWT\JWTInterface; |
|
| 19 | 16 | |
| 20 | 17 | /** |
| 21 | 18 | * Class HomeController. |
@@ -10,15 +10,11 @@ |
||
| 10 | 10 | |
| 11 | 11 | use App\Models\User; |
| 12 | 12 | use App\Services\TokenAuth; |
| 13 | -use Illuminate\Support\Arr; |
|
| 14 | 13 | use Illuminate\Http\Request; |
| 15 | 14 | use Illuminate\Http\Response; |
| 16 | 15 | use Illuminate\Contracts\Auth\Guard; |
| 17 | -use Tymon\JWTAuth\Exceptions\JWTException; |
|
| 18 | 16 | use Illuminate\Contracts\Container\Container; |
| 19 | -use Tymon\JWTAuth\Providers\JWT\JWTInterface; |
|
| 20 | 17 | use Illuminate\Contracts\Auth\Authenticatable; |
| 21 | -use Tymon\JWTAuth\Exceptions\TokenExpiredException; |
|
| 22 | 18 | use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; |
| 23 | 19 | use Symfony\Component\HttpKernel\Exception\UnprocessableEntityHttpException; |
| 24 | 20 | |
@@ -9,17 +9,13 @@ |
||
| 9 | 9 | namespace App\Services; |
| 10 | 10 | |
| 11 | 11 | use App\Models\User; |
| 12 | -use Carbon\Carbon; |
|
| 13 | 12 | use Illuminate\Contracts\Auth\Authenticatable; |
| 14 | 13 | use Illuminate\Contracts\Auth\Guard; |
| 15 | -use Illuminate\Contracts\Encryption\DecryptException; |
|
| 16 | -use Illuminate\Encryption\Encrypter; |
|
| 17 | 14 | use Illuminate\Support\Arr; |
| 18 | 15 | use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; |
| 19 | 16 | use Symfony\Component\HttpKernel\Exception\UnprocessableEntityHttpException; |
| 20 | 17 | use Tymon\JWTAuth\Exceptions\JWTException; |
| 21 | 18 | use Tymon\JWTAuth\Exceptions\TokenExpiredException; |
| 22 | -use Tymon\JWTAuth\Exceptions\TokenInvalidException; |
|
| 23 | 19 | use Tymon\JWTAuth\Providers\JWT\JWTInterface; |
| 24 | 20 | |
| 25 | 21 | /** |