8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0a1f8e9 + 566ac6b commit e0f14bdCopy full SHA for e0f14bd
src/Commands/SeedDatabaseCommand.php
@@ -0,0 +1,19 @@
1
+<?php
2
+
3
+namespace Native\Laravel\Commands;
4
5
+use Illuminate\Database\Console\Seeds\SeedCommand as BaseSeedCommand;
6
+use Native\Laravel\NativeServiceProvider;
7
8
+class SeedDatabaseCommand extends BaseSeedCommand
9
+{
10
+ protected $name = 'native:db:seed';
11
+ protected $description = 'Run the database seeders in the NativePHP development environment';
12
13
+ public function handle()
14
+ {
15
+ (new NativeServiceProvider($this->laravel))->rewriteDatabase();
16
17
+ parent::handle();
18
+ }
19
+}
0 commit comments