Passed
Push — master ( 25a8ca...66dd56 )
by Ferry
02:55
created

MigrateData::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php namespace crocodicstudio\crudbooster\commands;
2
3
use App;
4
use Cache;
5
use Illuminate\Support\Facades\Artisan;
6
use Illuminate\Support\Facades\DB;
7
use Illuminate\Console\Command;
8
use Illuminate\Support\Str;
9
use Symfony\Component\Process\Process;
10
11
class MigrateData extends Command
12
{
13
    /**
14
     * The console command name.
15
     *
16
     * @var string
17
     */
18
    protected $name = 'crudbooster:migrate';
19
20
    /**
21
     * The console command description.
22
     *
23
     * @var string
24
     */
25
    protected $description = 'CRUDBooster: Generate CB Data Migrate';
26
27
    /**
28
     * Execute the console command.
29
     *
30
     * @return mixed
31
     */
32
    public function handle()
33
    {
34
        $this->info("== Data Migrate ==");
35
        $this->call("db:seed",["--class"=>"CbMigrationSeeder"]);
36
        $this->info("== Data Migrate Finished ==");
37
    }
38
}
39