public function generateController()
{
$controllerFile = $this->controllersDir() . '/' . $this->controllerClassName() . ".php";
if ($this->confirmOverwrite($controllerFile)) {
$content = view($this->templatesDir() . '.controller', ['gen' => $this]);
file_put_contents($controllerFile, $content);
$this->info($this->controllerClassName() . " generated successfully.");
}
}