@@ 16-45 (lines=30) @@ | ||
13 | ||
14 | use Illuminate\Console\Command; |
|
15 | ||
16 | class ClearAll extends Command |
|
17 | { |
|
18 | /** |
|
19 | * The name and signature of the console command. |
|
20 | * |
|
21 | * @var string |
|
22 | */ |
|
23 | protected $signature = 'clear-all'; |
|
24 | ||
25 | /** |
|
26 | * The console command description. |
|
27 | * |
|
28 | * @var string |
|
29 | */ |
|
30 | protected $description = 'Resets all of compiled class files, cached views, cached configs etc.'; |
|
31 | ||
32 | /** |
|
33 | * Execute the console command. |
|
34 | * |
|
35 | * @return mixed |
|
36 | */ |
|
37 | public function handle() |
|
38 | { |
|
39 | $this->call('clear-compiled'); |
|
40 | $this->call('cache:clear'); |
|
41 | $this->call('config:clear'); |
|
42 | $this->call('route:clear'); |
|
43 | $this->call('view:clear'); |
|
44 | } |
|
45 | } |
|
46 |
@@ 16-45 (lines=30) @@ | ||
13 | ||
14 | use Illuminate\Console\Command; |
|
15 | ||
16 | class ClearAllCommand extends Command |
|
17 | { |
|
18 | /** |
|
19 | * The name and signature of the console command. |
|
20 | * |
|
21 | * @var string |
|
22 | */ |
|
23 | protected $signature = 'clear-all'; |
|
24 | ||
25 | /** |
|
26 | * The console command description. |
|
27 | * |
|
28 | * @var string |
|
29 | */ |
|
30 | protected $description = 'Resets all of compiled class files, cached views, cached configs etc.'; |
|
31 | ||
32 | /** |
|
33 | * Execute the console command. |
|
34 | * |
|
35 | * @return mixed |
|
36 | */ |
|
37 | public function handle() |
|
38 | { |
|
39 | $this->call('clear-compiled'); |
|
40 | $this->call('cache:clear'); |
|
41 | $this->call('config:clear'); |
|
42 | $this->call('route:clear'); |
|
43 | $this->call('view:clear'); |
|
44 | } |
|
45 | } |
|
46 |