Completed
Push — master ( efdc7e...8e7c5b )
by Maarten
01:54 queued 12s
created

MigrationsController::fresh()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Mtolhuys\LaravelSchematics\Http\Controllers;
4
5
use Illuminate\Support\Facades\Artisan;
6
use Illuminate\Routing\Controller;
7
8
class MigrationsController extends Controller
9
{
10
    public function run()
11
    {
12
        Artisan::call('migrate');
13
14
        return Artisan::output();
15
    }
16
17
    public function rollback()
18
    {
19
        Artisan::call('migrate:rollback');
20
21
        return Artisan::output();
22
    }
23
24
    public function seed()
25
    {
26
        Artisan::call('db:seed');
27
28
        return Artisan::output();
29
    }
30
31
    public function refresh()
32
    {
33
        Artisan::call('migrate:refresh', [
34
            '--force' => true,
35
        ]);
36
37
        return Artisan::output();
38
    }
39
40
    public function fresh()
41
    {
42
        Artisan::call('migrate:fresh');
43
44
        return Artisan::output();
45
    }
46
}
47