Skip to content

Commit

Permalink
refactor(global): Upgrade config files with Laravel 10.
Browse files Browse the repository at this point in the history
- Upgrade Kernel.php to match with Laravel 10
- Upgrade Notes
- Add returns
  • Loading branch information
gnovaro committed Feb 11, 2024
1 parent 84a8f65 commit 2678423
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -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());
Expand Down

0 comments on commit 2678423

Please sign in to comment.