$method public property
An anonymous function or the name of a model class method that will be called to perform the actual validation. The signature of the method should be like the following, where $attribute is the name of the attribute to be validated, and $params contains the value of $params that you specify when declaring the inline validation rule: function foo($attribute, $params)
public string|Closure $method = null