1 | <?php |
||
5 | class ClearAssetsCommand extends Command |
||
|
|||
6 | { |
||
7 | /** |
||
8 | * The console command name. |
||
9 | * |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $name = 'assets:clear'; |
||
13 | |||
14 | /** |
||
15 | * The console command description. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $description = 'Remove generated assets automatically'; |
||
20 | |||
21 | /** |
||
22 | * Execute the console command. |
||
23 | * |
||
24 | * @return void |
||
25 | */ |
||
26 | public function fire() |
||
31 | |||
32 | /** |
||
33 | * Get the console command arguments. |
||
34 | * |
||
35 | * @return array |
||
36 | */ |
||
37 | protected function getArguments() |
||
41 | |||
42 | /** |
||
43 | * Get the console command options. |
||
44 | * |
||
45 | * @return array |
||
46 | */ |
||
47 | protected function getOptions() |
||
51 | } |
||
52 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.