src/Routing/Route.php
protected function makeControllerInstance()
    {
        list($this->controllerClass, $this->controllerMethod) = explode('@', $this->action['uses']);

        $this->container->instance($this->controllerClass,
            $this->controller = $this->container->make($this->controllerClass));

        return $this->controller;
    }
protected function makeControllerInstance()
    {
        list($this->controllerClass, $this->controllerMethod) = explode('@', $this->action['uses']);

        $this->container->instance($this->controllerClass,
            $this->controller = $this->container->make($this->controllerClass));

        return $this->controller;
    }
protected function makeControllerInstance ( ) { list ( $ this -> controllerClass , $ this -> controllerMethod ) = explode ( '@' , $ this -> action [ 'uses' ] ) ; $ this -> container -> instance ( $ this -> controllerClass , $ this -> controller = $ this -> container -> make ( $ this -> controllerClass ) ) ; return $ this -> controller ; }
Make a new controller instance through the container.

@return \Illuminate\Routing\Controller|\Laravel\Lumen\Routing\Controller
Make a new controller instance through the container .