/**
  * Generate a new module migration file.
  *
  * @return null
  * 
  */
 public function generate()
 {
     $moduleTemplate = new TemplatesHelper();
     $templateData = $moduleTemplate->getTemplate("ControllerRepo", "Module");
     $templateData = $this->fillTemplate($templateData);
     $fileName = $this->commandData->modelName . "Controller.php";
     $path = $this->path . $fileName;
     $this->commandData->fileHelper->writeFile($path, $templateData);
     $this->commandData->commandObj->comment("\nController created: ");
     $this->commandData->commandObj->info($fileName);
 }
 /**
  * Generate a new module migration file.
  *
  * @return null
  * 
  */
 function generate()
 {
     $moduleTemplate = new TemplatesHelper();
     $templateData = $moduleTemplate->getTemplate("Request", "Module");
     $templateData = $this->fillTemplate($templateData);
     $fileName = "Create" . $this->commandData->modelName . "Request.php";
     $path = $this->path . $fileName;
     $this->commandData->fileHelper->writeFile($path, $templateData);
     $this->commandData->commandObj->comment("\nRequest created: ");
     $this->commandData->commandObj->info($fileName);
 }
 /**
  * Generate a new module migration file.
  *
  * @return null
  * 
  */
 function generate()
 {
     $this->commandData->modelNamespace = $this->namespace . "\\" . $this->commandData->modelName;
     $moduleTemplate = new TemplatesHelper();
     $templateData = $moduleTemplate->getTemplate("Repository", "Module");
     $templateData = $this->fillTemplate($templateData);
     $fileName = $this->commandData->modelName . "Repository.php";
     if (!file_exists($this->path)) {
         mkdir($this->path, 0755, true);
     }
     $path = $this->path . $fileName;
     $this->commandData->fileHelper->writeFile($path, $templateData);
     $this->commandData->commandObj->comment("\nRepository created: ");
     $this->commandData->commandObj->info($fileName);
 }
 /**
  * Generate a new module migration file.
  *
  * @return null
  * 
  */
 function generate()
 {
     $templateName = "Model";
     if ($this->customModelExtend) {
         $templateName = "Model_Extended";
     }
     // $templateData = $this->commandData->templatesHelper->getTemplate($templateName, "Common");
     $moduleTemplate = new TemplatesHelper();
     $templateData = $moduleTemplate->getTemplate($templateName, $this->viewsPath);
     $templateData = $this->fillTemplate($templateData);
     $fileName = $this->commandData->modelName . ".php";
     if (!file_exists($this->path)) {
         mkdir($this->path, 0755, true);
     }
     $path = $this->path . $fileName;
     $this->commandData->fileHelper->writeFile($path, $templateData);
     $this->commandData->commandObj->comment("\nModel created: ");
     $this->commandData->commandObj->info($fileName);
 }
 /**
  * Generate edit view
  *
  * @return null
  * 
  */
 private function generateEdit()
 {
     $moduleTemplate = new TemplatesHelper();
     $templateData = $moduleTemplate->getTemplate("edit.blade", $this->viewsPath);
     $templateData = $this->fillTemplate($templateData);
     $fileName = "edit.blade.php";
     $path = $this->path . 'admin/' . $fileName;
     $this->commandData->fileHelper->writeFile($path, $templateData);
     $this->commandData->commandObj->info("edit.blade.php created");
 }