Completed
Pull Request — master (#21)
by ARCANEDEV
05:07
created

SetupCommand::runSeeders()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
ccs 0
cts 4
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
crap 2
1
<?php namespace Arcanesoft\Auth\Console;
2
3
/**
4
 * Class     SetupCommand
5
 *
6
 * @package  Arcanesoft\Auth\Console
7
 * @author   ARCANEDEV <[email protected]>
8
 */
9
class SetupCommand extends Command
10
{
11
    /* -----------------------------------------------------------------
12
     |  Properties
13
     | -----------------------------------------------------------------
14
     */
15
    /**
16
     * The name and signature of the console command.
17
     *
18
     * @var string
19
     */
20
    protected $signature   = 'auth:setup';
21
22
    /**
23
     * The console command description.
24
     *
25
     * @var string
26
     */
27
    protected $description = 'Setup the Auth module.';
28
29
    /* -----------------------------------------------------------------
30
     |  Main Functions
31
     | -----------------------------------------------------------------
32
     */
33
    /**
34
     * Execute the console command.
35
     */
36
    public function handle()
37
    {
38
        $this->call('db:seed', [
39
            '--class' => \Arcanesoft\Auth\Seeds\DatabaseSeeder::class
40
        ]);
41
    }
42
}
43