refactor: remove redundant aliases from config/app.php

Remove auto-discovered package aliases (Purify, FFMpeg, Captcha) and
the unused Eloquent alias. These are registered automatically via
package auto-discovery.

Framework facade aliases must remain until all 344+ short-import
usages (e.g. 'use Cache;') are migrated to fully-qualified imports.
pull/6832/head
Your Name 1 month ago
parent 8e41f6fdf8
commit 5693b1581f

@ -1,8 +1,6 @@
<?php
use App\Util\Lexer\PrettyNumber;
use Buzz\LaravelHCaptcha\CaptchaFacade;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Blade;
@ -35,8 +33,6 @@ use Illuminate\Support\Facades\URL;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Facades\View;
use Illuminate\Support\Str;
use ProtoneMedia\LaravelFFMpeg\Support\FFMpeg;
use Stevebauman\Purify\Facades\Purify;
return [
@ -169,7 +165,6 @@ return [
*/
'aliases' => [
'App' => Illuminate\Support\Facades\App::class,
'Artisan' => Artisan::class,
'Auth' => Auth::class,
@ -181,7 +176,6 @@ return [
'Cookie' => Cookie::class,
'Crypt' => Crypt::class,
'DB' => DB::class,
'Eloquent' => Model::class,
'Event' => Event::class,
'File' => File::class,
'Gate' => Gate::class,
@ -206,9 +200,6 @@ return [
'Str' => Str::class,
'PrettyNumber' => PrettyNumber::class,
'Purify' => Purify::class,
'FFMpeg' => FFMpeg::class,
'Captcha' => CaptchaFacade::class,
],
];

Loading…
Cancel
Save