public function __call($method, $arguments) { if (in_array($method, array_keys($this->filters))) { return $model = $this->matchFilter($method); } return parent::__call($method, $arguments); }
public function __call($method, $parameters) { if (static::hasMacro($method)) { return $this->macroCall($method, $parameters); } return parent::__call($method, $parameters); }