| 1 | <?php  | 
            ||
| 10 | class MakeVC extends Command  | 
            ||
| 11 | { | 
            ||
| 12 | |||
| 13 | /**  | 
            ||
| 14 | * The name and signature of the console command.  | 
            ||
| 15 | */  | 
            ||
| 16 |     protected $signature = 'make:vc {link : The route link} {action? : View or controller to create}  | 
            ||
| 17 |     {--t|type=controller : Type of route to create (regular,controller,resource)} {--m|method=get : HTTP method}  | 
            ||
| 18 |     {--api : Route is an api route}'; | 
            ||
| 19 | |||
| 20 | /**  | 
            ||
| 21 | * The console command description.  | 
            ||
| 22 | *  | 
            ||
| 23 | * @var string  | 
            ||
| 24 | */  | 
            ||
| 25 | protected $description = 'Create a view with his corresponding controller and route (vc: view controller) and menu entry';  | 
            ||
| 26 | |||
| 27 | /**  | 
            ||
| 28 | * MakeMVC constructor.  | 
            ||
| 29 | */  | 
            ||
| 30 | public function __construct()  | 
            ||
| 34 | |||
| 35 | /**  | 
            ||
| 36 | * Execute the console command.  | 
            ||
| 37 | */  | 
            ||
| 38 | public function handle()  | 
            ||
| 43 | |||
| 44 | /**  | 
            ||
| 45 | * Obtain command.  | 
            ||
| 46 | *  | 
            ||
| 47 | * @return string  | 
            ||
| 48 | */  | 
            ||
| 49 |     protected function command() { | 
            ||
| 57 | }  | 
            ||
| 58 |