]> BookStack Code Mirror - bookstack/blob - app/Console/Commands/ClearViews.php
Fixed 'interaction_required' response for azure
[bookstack] / app / Console / Commands / ClearViews.php
1 <?php
2
3 namespace BookStack\Console\Commands;
4
5 use Illuminate\Console\Command;
6
7 class ClearViews extends Command
8 {
9     /**
10      * The name and signature of the console command.
11      *
12      * @var string
13      */
14     protected $signature = 'bookstack:clear-views';
15
16     /**
17      * The console command description.
18      *
19      * @var string
20      */
21     protected $description = 'Clear all view-counts for all entities.';
22
23     /**
24      * Create a new command instance.
25      *
26      */
27     public function __construct()
28     {
29         parent::__construct();
30     }
31
32     /**
33      * Execute the console command.
34      *
35      * @return mixed
36      */
37     public function handle()
38     {
39         \Views::resetAll();
40         $this->comment('Views cleared');
41     }
42 }