]> BookStack Code Mirror - bookstack/blob - app/Http/Middleware/ThrottleApiRequests.php
Update settings.php
[bookstack] / app / Http / Middleware / ThrottleApiRequests.php
1 <?php
2
3 namespace BookStack\Http\Middleware;
4
5 use Illuminate\Routing\Middleware\ThrottleRequests as Middleware;
6
7 class ThrottleApiRequests extends Middleware
8 {
9
10     /**
11      * Resolve the number of attempts if the user is authenticated or not.
12      */
13     protected function resolveMaxAttempts($request, $maxAttempts)
14     {
15         return (int) config('api.requests_per_minute');
16     }
17
18 }