Migration::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace EasyPanel\Commands\Actions;
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