limiting requests to controllers in laravel

Solutions on MaxInterview for limiting requests to controllers in laravel by the best coders in the world

showing results for - "limiting requests to controllers in laravel"
Lucas
19 Jan 2020
1//Controller add
2
3public function __construct()
4	{
5		$this->middleware([
6			'auth',
7//About 20 requests per minute to Cotroller and error if there are too many requests
8			'throttle:20,1'
9        ]);
10	}