From 2678423f4493bd1dd9a8be030bdbab652eeace11 Mon Sep 17 00:00:00 2001 From: Gustavo Novaro Date: Sun, 11 Feb 2024 15:45:15 +0100 Subject: [PATCH] refactor(global): Upgrade config files with Laravel 10. - Upgrade Kernel.php to match with Laravel 10 - Upgrade Notes - Add returns --- app/Providers/RouteServiceProvider.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php index 77c010a3..89d5f5fd 100755 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -11,7 +11,7 @@ class RouteServiceProvider extends ServiceProvider { /** - * The path to the "home" route for your application. + * The path to your application's "home" route. * * Typically, users are redirected here after authentication. * @@ -21,10 +21,8 @@ class RouteServiceProvider extends ServiceProvider /** * Define your route model bindings, pattern filters, and other route configuration. - * - * @return void */ - public function boot() + public function boot(): void { RateLimiter::for('api', function (Request $request) { return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip());