Route setMethods(string|array $methods)
Sets the HTTP methods (e.g. 'POST') this route is restricted to.
So an empty array means that any method is allowed.
This method implements a fluent interface.
Route setMethods(string|array $methods)
Sets the HTTP methods (e.g. 'POST') this route is restricted to.
So an empty array means that any method is allowed.
This method implements a fluent interface.
string|array | $methods | The method or an array of methods |
Route | The current Route instance |
Designed by : w10schools
service@w10schools.com
Please login to continue.