|
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
|
|
|
|