private function createController($modelName)
{
$filename = ucfirst($modelName) . 'Controller.php';
if ($this->files->exists(app_path('Http/' . $filename))) {
$this->error('Controller already exists!');
return false;
}
$stub = $this->files->get(__DIR__ . '/../Stubs/controller.stub');
$stub = str_replace('MyModelClass', ucfirst($modelName), $stub);
$stub = str_replace('myModelInstance', Str::camel($modelName), $stub);
$stub = str_replace('template', strtolower($modelName), $stub);
$this->files->put(app_path('Http/Controllers/' . $filename), $stub);
$this->info('Created controller ' . $filename);
return true;
}