Completed
Push — master ( 21ddf1...1004bc )
by Sergi Tur
02:59
created

MakeMVC::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Acacha\AdminLTETemplateLaravel\Console;
4
5
use Illuminate\Console\Command;
6
7
/**
8
 * Class MakeMVC.
9
 */
10
class MakeMVC extends MakeVC
11
{
12
    use CreatesModels;
13
14
    /**
15
     * The name and signature of the console command.
16
     */
17
    protected $signature = 'make:mvc {link : The route link} {action? : View or controller to create} 
18
    {--t|type=controller : Type of route to create (regular,controller,resource)} {--m|method=get : HTTP method} 
19
    {--api : Route is an api route}';
20
21
    /**
22
     * The console command description.
23
     *
24
     * @var string
25
     */
26
    protected $description = 'Create a full MVC(Model View Controller) and his corresponding route and menu entry';
27
28
    /**
29
     * MakeMVC constructor.
30
     */
31
    public function __construct()
32
    {
33
        parent::__construct();
34
    }
35
36
    /**
37
     * Execute the console command.
38
     */
39
    public function handle()
40
    {
41
        $this->createModel($this->argument('link'));
42
        parent::handle();
43
    }
44
45
}
46