PublishCommand::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 11
ccs 6
cts 6
cp 1
rs 9.9
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php namespace Arcanesoft\Auth\Console;
2
3
use Arcanedev\LaravelAuth\LaravelAuthServiceProvider;
4
use Arcanedev\Support\Bases\Command;
5
use Arcanesoft\Auth\AuthServiceProvider;
6
7
/**
8
 * Class     PublishCommand
9
 *
10
 * @package  Arcanesoft\Auth\Console
11
 * @author   ARCANEDEV <[email protected]>
12
 */
13
class PublishCommand extends Command
14
{
15
    /* -----------------------------------------------------------------
16
     |  Properties
17
     | -----------------------------------------------------------------
18
     */
19
20
    /**
21
     * The name and signature of the console command.
22
     *
23
     * @var string
24
     */
25
    protected $signature   = 'auth:publish';
26
27
    /**
28
     * The console command description.
29
     *
30
     * @var string
31
     */
32
    protected $description = 'Publish auth config, migrations, assets and other stuff.';
33
34
    /* -----------------------------------------------------------------
35
     |  Main Methods
36
     | -----------------------------------------------------------------
37
     */
38
39
    /**
40
     * Execute the console command.
41
     */
42 3
    public function handle()
43
    {
44 3
        $this->call('vendor:publish', [
45 3
            '--provider' => LaravelAuthServiceProvider::class,
46
            '--tag'      => ['migrations', 'factories'],
47
        ]);
48
49 3
        $this->call('vendor:publish', [
50 3
            '--provider' => AuthServiceProvider::class,
51
        ]);
52 3
    }
53
}
54