Passed
Push — master ( b6ce23...d00037 )
by Reza
03:56
created

Migration::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 8
rs 10
1
<?php
2
3
namespace EasyPanel\Commands;
4
5
use EasyPanel\EasyPanelServiceProvider;
6
use Illuminate\Console\Command;
7
use Illuminate\Support\Facades\Artisan;
8
9
class Migration extends Command
10
{
11
12
    protected $signature = 'panel:migration';
13
    protected $description = 'Publish migrations file';
14
15
    public function handle()
16
    {
17
        Artisan::call('vendor:publish', [
18
            '--provider' => EasyPanelServiceProvider::class,
19
            '--tag' => 'easy-panel-migrations'
20
        ]);
21
22
        $this->line("<options=bold,reverse;fg=green>\nMigrations were published</>");
23
    }
24
}
25