Skip to content

Commit c27a6b5

Browse files
authored
chore: create seed console command
1 parent e419725 commit c27a6b5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Concerns/InteractsWithConsole.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,14 @@ public function rollback(): string
3131

3232
return $output->fetch();
3333
}
34+
35+
public function seed(): string
36+
{
37+
$input = new ArrayInput([]);
38+
$output = new BufferedOutput();
39+
40+
ApplicationContext::getContainer()->get(SeedCommand::class)->run($input, $output);
41+
42+
return $output->fetch();
43+
}
3444
}

0 commit comments

Comments
 (0)