public function write()
 {
     $file = sprintf('%s%s', $this->path, $this->getFileName());
     $content = view(Config::get('generator.migration.template'))->with('model', $this->model)->with('migration', $this)->render();
     $classWriter = new ClassWriter();
     $classWriter->setContentWithPhpTags(true);
     $classWriter->write($file, $content);
 }
 /**
  * @return void
  */
 private function writeModelFile()
 {
     $file = $this->getFilename();
     $content = view(Config::get('generator.model.template'))->with('model', $this->model)->render();
     $classWriter = new ClassWriter();
     $classWriter->setContentWithPhpTags(true);
     $classWriter->write($file, $content);
     $this->comment('Written file: ' . $file);
 }