]> BookStack Code Mirror - bookstack/blob - app/Console/Commands/ResetViews.php
Brazilian Portuguese Localization
[bookstack] / app / Console / Commands / ResetViews.php
1 <?php
2
3 namespace BookStack\Console\Commands;
4
5 use Illuminate\Console\Command;
6
7 class ResetViews extends Command
8 {
9     /**
10      * The name and signature of the console command.
11      *
12      * @var string
13      */
14     protected $signature = 'views:reset';
15
16     /**
17      * The console command description.
18      *
19      * @var string
20      */
21     protected $description = 'Reset 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     }
41 }