diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 60f37be6..4ccc31e6 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -27,6 +27,7 @@ class Kernel extends ConsoleKernel protected function schedule(Schedule $schedule) { $schedule->command('horizon:snapshot')->everyFiveMinutes(); + $schedule->command('cache:prune-stale-tags')->hourly(); } /** diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index 5da917fc..8fb91153 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -56,7 +56,7 @@ class Kernel extends HttpKernel * * @var array */ - protected $routeMiddleware = [ + protected $middlewareAliases = [ 'auth' => \App\Http\Middleware\Authenticate::class, 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, diff --git a/app/Models/SyndicationTarget.php b/app/Models/SyndicationTarget.php index 85d674c1..1fbc3b9b 100644 --- a/app/Models/SyndicationTarget.php +++ b/app/Models/SyndicationTarget.php @@ -53,7 +53,7 @@ class SyndicationTarget extends Model /** * Get the service data as a single attribute. * - * @vreturn Attribute + * @return Attribute */ protected function service(): Attribute { diff --git a/app/Providers/AuthServiceProvider.php b/app/Providers/AuthServiceProvider.php index 71d8474d..c776912f 100644 --- a/app/Providers/AuthServiceProvider.php +++ b/app/Providers/AuthServiceProvider.php @@ -17,13 +17,9 @@ class AuthServiceProvider extends ServiceProvider /** * Register any application authentication / authorization services. - * - * @return void */ - public function boot() + public function boot(): void { - $this->registerPolicies(); - // } }