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 a4605f0 + 46d896e commit 2a2fd25Copy full SHA for 2a2fd25
src/Commands/FreshCommand.php
@@ -0,0 +1,23 @@
1
+<?php
2
+
3
+namespace Native\Laravel\Commands;
4
5
+use Illuminate\Console\Command;
6
+use Native\Laravel\NativeServiceProvider;
7
8
+class FreshCommand extends Command
9
+{
10
+ protected $description = 'Run the database migrations in the NativePHP development environment';
11
12
+ protected $signature = 'native:migrate fresh';
13
14
+ public function handle()
15
+ {
16
+ unlink(config('nativephp-internal.database_path'));
17
18
+ (new NativeServiceProvider($this->laravel))->rewriteDatabase();
19
20
+ $this->call('native:migrate');
21
+ }
22
23
+}
0 commit comments