/** * 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 index view template * * @return String */ public function GenerateIndex() { $standardApi = $this->names->standardapi(); $foreach = $this->names->foreachh(); $endforeach = $this->names->endforeachh(); $open = $this->names->open(); $close = $this->names->close(); $TableName = $this->names->TableName(); $TableNames = $this->names->TableNames(); $TableNameSingle = $this->names->TableNameSingle(); $request = $this->ViewData; return view('template.views.index', compact('request', 'TableName', 'TableNames', 'TableNameSingle', 'open', 'close', 'foreach', 'endforeach', 'standardApi'))->render(); }
/** * fetch model template * * @return String */ public function generate() { $TableName = $this->names->TableName(); $TableNames = $this->names->TableNames(); return "<?php\n" . view('template.model.model', compact('TableName', 'TableNames'))->render(); }