Passed
Push — master ( d2ddcd...7d7316 )
by Reza
04:17
created

Install   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 20
dl 0
loc 36
rs 10
c 0
b 0
f 0
wmc 1

1 Method

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