Completed
Push — master ( a76360...3b8ebd )
by Manuel
04:51 queued 03:32
created

PublishCommand::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Oscer\Cms\Core\Commands;
4
5
use Illuminate\Console\Command;
6
7
class PublishCommand extends Command
8
{
9
    protected $signature = 'cms:publish';
10
11
    protected $description = 'Publish all cms resources';
12
13
    /**
14
     * Execute the console command.
15
     *
16
     * @return void
17
     */
18
    public function handle()
19
    {
20
        $this->comment('Publishing cms assets...');
21
        $this->callSilent('vendor:publish', ['--tag' => 'cms-assets']);
22
23
        $this->comment('Publishing cms Configuration...');
24
        $this->callSilent('vendor:publish', ['--tag' => 'cms-config']);
25
26
        $this->info('Laravel cms was installed successfully.');
27
    }
28
}
29