Install   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 26
c 0
b 0
f 0
dl 0
loc 47
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 41 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
use Iya30n\DynamicAcl\Providers\DynamicAclServiceProvider;
9
10
class Install extends Command
11
{
12
13
    protected $signature = 'panel:install';
14
    protected $description = 'Install panel';
15
16
    public function handle()
17
    {
18
        $this->warn("\nInstalling Admin panel ...");
19
20
        Artisan::call('vendor:publish', [
21
            '--provider' => EasyPanelServiceProvider::class,
22
            '--tag' => 'easy-panel-styles'
23
        ]);
24
25
        Artisan::call('vendor:publish', [
26
            '--provider' => EasyPanelServiceProvider::class,
27
            '--tag' => 'easy-panel-views'
28
        ]);
29
30
        Artisan::call('vendor:publish', [
31
            '--provider' => EasyPanelServiceProvider::class,
32
            '--tag' => 'easy-panel-config'
33
        ]);
34
35
        Artisan::call('vendor:publish', [
36
            '--provider' => EasyPanelServiceProvider::class,
37
            '--tag' => 'easy-panel-cruds'
38
        ]);
39
40
        Artisan::call('vendor:publish', [
41
            '--provider' => EasyPanelServiceProvider::class,
42
            '--tag' => 'easy-panel-lang'
43
        ]);
44
45
        Artisan::call('vendor:publish', [
46
            '--provider' => EasyPanelServiceProvider::class,
47
            '--tag' => 'easy-panel-migration'
48
        ]);
49
50
        Artisan::call('vendor:publish', [
51
            '--provider' => DynamicAclServiceProvider::class
52
        ]);
53
54
        Artisan::call('migrate');
55
56
        $this->line("<options=bold,reverse;fg=green>\nEasy panel was installed 🎉</>\n\nBuild an amazing admin panel less than 5 minutes 🤓\n");
57
    }
58
}
59