Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Sep 19, 2023
1 parent b9bff06 commit 3d137bf
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/Concerns/MigrationGenerator.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace Orchestra\Canvas\Core\Concerns;

trait MigrationGenerator
{
use CreatesUsingGeneratorPreset;

/**
* Create a base migration file for the table.
*/
protected function createBaseMigrationUsingCanvas(string $table): string
{
return $this->laravel['migration.creator']->create(
"create_{$table}_table", $this->generatorPreset()->migrationPath()
);
}
}

0 comments on commit 3d137bf

Please sign in to comment.