/** * Start make controller. * * @return void */ private function start() { $name = $this->scaffoldCommandObj->getObjName('Name') . 'Controller'; $path = $this->getPath($name, 'controller'); if ($this->files->exists($path)) { return $this->scaffoldCommandObj->comment("x {$name}"); } $this->makeDirectory($path); $this->files->put($path, $this->compileControllerStub()); $this->scaffoldCommandObj->info('+ Controller'); }