From e7316ba973db33f357270b5787963e6fdcfcbe7d Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Tue, 19 Mar 2024 21:02:19 -0400 Subject: [PATCH] Simplification --- app/Providers/AppServiceProvider.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 0be656887..660dde0da 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -73,8 +73,7 @@ class AppServiceProvider extends ServiceProvider */ public function register(): void { - // Only load the settings service provider if the environment - // is configured to allow it. + // Only load the settings service provider if the environment is configured to allow it. if (!config('panel.load_environment_only', false) && $this->app->environment() !== 'testing') { $this->app->register(SettingsServiceProvider::class); } @@ -82,8 +81,6 @@ class AppServiceProvider extends ServiceProvider $this->app->singleton('extensions.themes', function () { return new Theme(); }); - - $this->registerAuth(); } /** @@ -130,9 +127,4 @@ class AppServiceProvider extends ServiceProvider return (int) $user->id === (int) $userId; }); } - - public function registerAuth(): void - { - Sanctum::ignoreMigrations(); - } }