/** * Handle calls to missing methods on the controller. * * @param string $method * @param array $parameters * @return mixed * * @throws \BadMethodCallException */ public function __call($method, $parameters) { $view = "errors.{$method}"; if (view()->exists($view)) { return view($view); } return parent::__call($method, $parameters); }