protected getMigrationStub ( $stub ) : string | ||
$stub | ||
return | string |
protected function getMigrationStub($stub)
{
if (file_exists(__DIR__ . '/../Stubs/' . $stub . '.stub')) {
return file_get_contents(__DIR__ . '/../Stubs/' . $stub . '.stub');
}
throw new \Exception('We could not create the migration!');
}