view = $view; } /** * Invoke the controller method. * * @param array $args * @return \Illuminate\Contracts\View\View */ public function __invoke(...$args) { list($view, $data) = array_slice($args, -2); return $this->view->make($view, $data); } }