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