From dfac46f3ff3ba9a3866ac343d6aee1cc398ff0b4 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 21 Apr 2023 10:56:30 -0500 Subject: [PATCH] installing auth service provider isn't necessary in light of policy auto discovery --- src/Console/InstallCommand.php | 1 - stubs/app/Providers/AuthServiceProvider.php | 29 --------------------- 2 files changed, 30 deletions(-) delete mode 100644 stubs/app/Providers/AuthServiceProvider.php diff --git a/src/Console/InstallCommand.php b/src/Console/InstallCommand.php index 5a88c4b55..d7bae068a 100644 --- a/src/Console/InstallCommand.php +++ b/src/Console/InstallCommand.php @@ -536,7 +536,6 @@ protected function ensureApplicationIsTeamCompatible() (new Filesystem)->ensureDirectoryExists(app_path('Policies')); // Service Providers... - copy(__DIR__.'/../../stubs/app/Providers/AuthServiceProvider.php', app_path('Providers/AuthServiceProvider.php')); copy(__DIR__.'/../../stubs/app/Providers/JetstreamWithTeamsServiceProvider.php', app_path('Providers/JetstreamServiceProvider.php')); // Models... diff --git a/stubs/app/Providers/AuthServiceProvider.php b/stubs/app/Providers/AuthServiceProvider.php deleted file mode 100644 index b99fad3a2..000000000 --- a/stubs/app/Providers/AuthServiceProvider.php +++ /dev/null @@ -1,29 +0,0 @@ - - */ - protected $policies = [ - Team::class => TeamPolicy::class, - ]; - - /** - * Register any authentication / authorization services. - */ - public function boot(): void - { - $this->registerPolicies(); - - // - } -}