/** * 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(); }