Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

limiting requests to controllers in laravel

//Controller add

public function __construct()
	{
		$this->middleware([
			'auth',
//About 20 requests per minute to Cotroller and error if there are too many requests
			'throttle:20,1'
        ]);
	}
 
PREVIOUS NEXT
Tagged: #limiting #requests #controllers #laravel
ADD COMMENT
Topic
Name
8+5 =