Refactor RouteServiceProvider to remove custom rate limiting for API requests
- Removed the custom rate limiter for API requests in RouteServiceProvider, simplifying the boot method. - This change streamlines the routing setup and prepares for potential future enhancements in request handling.
This commit is contained in:
@@ -24,9 +24,6 @@ class RouteServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
RateLimiter::for('api', function (Request $request) {
|
||||
return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip());
|
||||
});
|
||||
|
||||
$this->routes(function () {
|
||||
Route::middleware('api')
|
||||
|
||||
Reference in New Issue
Block a user