1 | <?php |
||
12 | class MakeView extends Command |
||
13 | { |
||
14 | /** |
||
15 | * The name and signature of the console command. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $signature = 'make:view {name : the name of the view}'; |
||
20 | |||
21 | /** |
||
22 | * The console command description. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $description = 'Create a new view using adminlte default layout'; |
||
27 | |||
28 | /** |
||
29 | * Create a new command instance. |
||
30 | * |
||
31 | * @return void |
||
|
|||
32 | */ |
||
33 | public function __construct() |
||
37 | |||
38 | /** |
||
39 | * Execute the console command. |
||
40 | * |
||
41 | * |
||
42 | */ |
||
43 | public function handle() |
||
55 | |||
56 | /** |
||
57 | * Get stub path |
||
58 | */ |
||
59 | protected function getStubPath() |
||
63 | |||
64 | /** |
||
65 | * The view destination path. |
||
66 | * |
||
67 | * @return string |
||
68 | */ |
||
69 | protected function viewPath() |
||
73 | |||
74 | /** |
||
75 | * Create full relative path to blade template from view name. |
||
76 | * @param $name |
||
77 | * @return string |
||
78 | */ |
||
79 | protected function constructViewBaldeName($name) { |
||
82 | |||
83 | /** |
||
84 | * Converts dotted notation to path slashes. |
||
85 | * @param $name |
||
86 | * @return mixed |
||
87 | */ |
||
88 | protected function dottedPathToSlahesPath($name) { |
||
92 | } |
||
93 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.