From f17162c2e2bab2ade399f37a7d05af8f5f3b33bc Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 29 May 2024 12:40:05 +0100 Subject: [PATCH] Use artisan facade Signed-off-by: snipe --- app/Console/Commands/RegenerateAssetTags.php | 2 +- app/Console/Commands/RestoreDeletedUsers.php | 2 +- app/Console/Commands/RotateAppKey.php | 2 +- app/Http/Controllers/Api/ImportController.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Console/Commands/RegenerateAssetTags.php b/app/Console/Commands/RegenerateAssetTags.php index bd5cf37a42..a49d3d0774 100644 --- a/app/Console/Commands/RegenerateAssetTags.php +++ b/app/Console/Commands/RegenerateAssetTags.php @@ -4,7 +4,7 @@ namespace App\Console\Commands; use App\Models\Asset; use App\Models\Setting; -use Artisan; +use Illuminate\Support\Facades\Artisan; use Illuminate\Console\Command; class RegenerateAssetTags extends Command diff --git a/app/Console/Commands/RestoreDeletedUsers.php b/app/Console/Commands/RestoreDeletedUsers.php index c01e6319de..9d5582a618 100644 --- a/app/Console/Commands/RestoreDeletedUsers.php +++ b/app/Console/Commands/RestoreDeletedUsers.php @@ -6,7 +6,7 @@ use App\Models\Actionlog; use App\Models\Asset; use App\Models\License; use App\Models\User; -use Artisan; +use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\DB; use Illuminate\Console\Command; diff --git a/app/Console/Commands/RotateAppKey.php b/app/Console/Commands/RotateAppKey.php index f57a9462ee..e4529962b2 100644 --- a/app/Console/Commands/RotateAppKey.php +++ b/app/Console/Commands/RotateAppKey.php @@ -5,7 +5,7 @@ namespace App\Console\Commands; use App\Models\Asset; use App\Models\CustomField; use App\Models\Setting; -use Artisan; +use Illuminate\Support\Facades\Artisan; use Illuminate\Console\Command; use Illuminate\Contracts\Encryption\DecryptException; use Illuminate\Encryption\Encrypter; diff --git a/app/Http/Controllers/Api/ImportController.php b/app/Http/Controllers/Api/ImportController.php index d57c7a0c8f..d5323bfdd4 100644 --- a/app/Http/Controllers/Api/ImportController.php +++ b/app/Http/Controllers/Api/ImportController.php @@ -9,7 +9,7 @@ use App\Http\Transformers\ImportsTransformer; use App\Models\Asset; use App\Models\Company; use App\Models\Import; -use Artisan; +use Illuminate\Support\Facades\Artisan; use Illuminate\Database\Eloquent\JsonEncodingException; use Illuminate\Support\Facades\Request; use Illuminate\Support\Facades\Session;