1 | <?php |
||
7 | class MakeTeamwork extends Command |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * The name and signature of the console command. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $signature = 'make:teamwork {--views : Only scaffold the teamwork views}'; |
||
16 | |||
17 | /** |
||
18 | * The console command description. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $description = 'Create Teamwork scaffolding files.'; |
||
23 | |||
24 | protected $views = [ |
||
25 | 'emails/invite.blade.php' => 'teamwork/emails/invite.blade.php', |
||
26 | 'members/list.blade.php' => 'teamwork/members/list.blade.php', |
||
27 | 'create.blade.php' => 'teamwork/create.blade.php', |
||
28 | 'edit.blade.php' => 'teamwork/edit.blade.php', |
||
29 | 'index.blade.php' => 'teamwork/index.blade.php', |
||
30 | ]; |
||
31 | |||
32 | /** |
||
33 | * Create a new command instance. |
||
34 | * |
||
35 | * @return void |
||
|
|||
36 | */ |
||
37 | public function __construct() |
||
41 | |||
42 | /** |
||
43 | * Execute the console command. |
||
44 | * |
||
45 | * @return mixed |
||
46 | */ |
||
47 | public function handle() |
||
92 | |||
93 | /** |
||
94 | * Create the directories for the files. |
||
95 | * |
||
96 | * @return void |
||
97 | */ |
||
98 | protected function createDirectories() |
||
116 | |||
117 | /** |
||
118 | * Export the authentication views. |
||
119 | * |
||
120 | * @return void |
||
121 | */ |
||
122 | protected function exportViews() |
||
130 | |||
131 | /** |
||
132 | * Compiles the HTTP controller stubs. |
||
133 | * |
||
134 | * @param $stubName |
||
135 | * @return string |
||
136 | */ |
||
137 | protected function compileControllerStub($stubName) |
||
145 | |||
146 | protected function getNamespace() |
||
150 | } |
||
151 |
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.