Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel throttle

//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: #Laravel #throttle
ADD COMMENT
Topic
Name
2+2 =