/**
  * fetch controller tamplate
  *
  * @return String
  */
 public function generate()
 {
     $TableName = $this->names->TableName();
     $TableNameSingle = $this->names->TableNameSingle();
     $TableNames = $this->names->TableNames();
     $dataS = $this->dataS;
     return "<?php\n" . view('template.controller.controller', compact('TableName', 'TableNameSingle', 'TableNames', 'dataS'))->render();
 }
 /**
  * fetch migration template
  *
  * @return String
  */
 public function generate()
 {
     $TableName = $this->names->TableNameMigration();
     $TableNames = $this->names->TableNames();
     $dataM = $this->dataMigration;
     $dataS = $this->dataStandard;
     return "<?php\n" . view('template.migration.migration', compact('TableName', 'dataM', 'dataS', 'TableNames'))->render();
 }
 /**
  * fetch edit view template
  *
  * @return String
  */
 public function GenerateEdit()
 {
     $open = $this->names->open();
     $close = $this->names->close();
     $standardApi = $this->names->standardapi();
     $TableName = $this->names->TableName();
     $TableNameSingle = $this->names->TableNameSingle();
     $request = $this->ViewData;
     return view('template.views.edit', compact('request', 'TableName', 'TableNameSingle', 'open', 'close', 'standardApi', 'open', 'close'))->render();
 }
 /**
  * fetch route template
  *
  * @return String
  */
 public function generate()
 {
     $TableName = $this->names->TableName();
     $TableNameSingle = $this->names->TableNameSingle();
     return "\n" . view('template.routes', compact('TableName', 'TableNameSingle'))->render();
 }
 /**
  * fetch model template
  *
  * @return String
  */
 public function generate()
 {
     $TableName = $this->names->TableName();
     return "<?php\n" . view('template.model.model', compact('TableName', 'php', 'less'))->render();
 }