From c9bf70b9dc29a1d4379b509d6501ce89b25d70fa Mon Sep 17 00:00:00 2001 From: akbarjimi Date: Sun, 7 Mar 2021 17:34:29 +0330 Subject: [PATCH] Fix a few problem after removing lumen --- app/Http/Controllers/AuthController.php | 1 - app/Models/Model.php | 4 ---- app/Models/User.php | 4 ++-- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/app/Http/Controllers/AuthController.php b/app/Http/Controllers/AuthController.php index 7e9a193..55fe6f7 100644 --- a/app/Http/Controllers/AuthController.php +++ b/app/Http/Controllers/AuthController.php @@ -13,7 +13,6 @@ use App\Http\Resources\UserResource; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Cache; -use Laravel\Lumen\Routing\Controller; use Laravel\Socialite\Facades\Socialite; use Illuminate\Session\TokenMismatchException; use Symfony\Component\HttpFoundation\Response; diff --git a/app/Models/Model.php b/app/Models/Model.php index c68422f..b2f1373 100644 --- a/app/Models/Model.php +++ b/app/Models/Model.php @@ -2,11 +2,7 @@ namespace App\Models; -use Anik\Amqp\Exchange; -use Anik\Amqp\Facades\Amqp; use App\Events\ModelSaved; -use PhpAmqpLib\Wire\AMQPTable; -use Anik\Amqp\PublishableMessage; use Illuminate\Http\JsonResponse; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Auth; diff --git a/app/Models/User.php b/app/Models/User.php index 857c7d3..72c3b64 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -5,13 +5,13 @@ namespace App\Models; use App\Models\File; use App\Models\Model; use App\Models\SoftDeletes; -use App\Models\ReportableRelation; use Illuminate\Validation\Rule; use Illuminate\Http\UploadedFile; use Spatie\MediaLibrary\HasMedia; +use App\Models\ReportableRelation; use Illuminate\Auth\Authenticatable; -use Laravel\Lumen\Auth\Authorizable; use Spatie\MediaLibrary\InteractsWithMedia; +use Illuminate\Foundation\Auth\Access\Authorizable; use Spatie\MediaLibrary\MediaCollections\Models\Media; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;