Migration   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 8 1
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