datatable.directory codebase
https://datatable.directory/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
410 B
20 lines
410 B
6 years ago
|
<?php
|
||
|
|
||
|
|
||
|
namespace App\Http\Middleware;
|
||
|
|
||
|
|
||
|
use Illuminate\Routing\Middleware\ThrottleRequests;
|
||
|
|
||
|
class ThrottleIfNotDebug extends ThrottleRequests
|
||
|
{
|
||
|
public function handle($request, \Closure $next, $maxAttempts = 60, $decayMinutes = 1)
|
||
|
{
|
||
|
if (config('app.debug')) {
|
||
|
return $next($request);
|
||
|
}
|
||
|
|
||
|
return parent::handle($request, $next, $maxAttempts, $decayMinutes);
|
||
|
}
|
||
|
}
|