src/Console/MakeRoute.php
protected function addMethodToController($controller, $controllerMethod)
    {
        $tmpfile = $this->createTmpFileWithMethod($controllerMethod);
        $path = $this->getPath($tmpfile);
        add_file_into_file('\/\/', $path, app_path('Http/Controllers/' . $controller . '.php'));
    }
protected function addMethodToController($controller, $controllerMethod)
    {
        $tmpfile = $this->createTmpFileWithMethod($controllerMethod);
        $path = $this->getPath($tmpfile);
        add_file_into_file('\/\/', $path, app_path('Http/Controllers/' . $controller . '.php'));
    }
protected function addMethodToController ( $ controller , $ controllerMethod ) { $ tmpfile = $ this -> createTmpFileWithMethod ( $ controllerMethod ) ; $ path = $ this -> getPath ( $ tmpfile ) ; add_file_into_file ( '\/\/' , $ path , app_path ( 'Http/Controllers/' . $ controller . '.php' ) ) ; }
Add method to controller.

@param $controller
@param $controllerMethod     *
Add method to controller .