LaravelBook\Laravel4Powerpack\Form::__call PHP Method

__call() public method

Dynamically handle calls to custom macros.
public __call ( string $method, array $parameters ) : mixed
$method string
$parameters array
return mixed
    public function __call($method, $parameters)
    {
        if (isset($this->macros[$method])) {
            return call_user_func_array($this->macros[$method], $parameters);
        }
        throw new \Exception("Method [{$method}] does not exist.");
    }