update by

This commit is contained in:
Taylor Otwell 2020-10-22 16:01:59 -05:00
parent 453d7286f3
commit bec982b0a3
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ public function boot()
protected function configureRateLimiting()
{
RateLimiter::for('api', function (Request $request) {
return Limit::perMinute(60)->by($request->ip());
return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip());
});
}
}