Skip to content

Commit 017bd37

Browse files
committed
add reset
1 parent bd4c6e3 commit 017bd37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/Http/Controllers/ResetController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
namespace App\Http\Controllers;
44

55
use Illuminate\Http\Request;
6+
use Illuminate\Support\Facades\Artisan;
67

78
class ResetController extends Controller
89
{
910
public function reset()
1011
{
12+
Artisan::call('migrate:fresh');
1113
return 'OK'; //status code de 200
1214
}
1315
}

0 commit comments

Comments
 (0)