Added view count tracking with personalised lists

This commit is contained in:
Dan Brown
2015-11-21 17:22:14 +00:00
parent 76eb8fc5d7
commit ea55b7f141
18 changed files with 311 additions and 30 deletions

View File

@ -0,0 +1,41 @@
<?php
namespace BookStack\Console\Commands;
use Illuminate\Console\Command;
class ResetViews extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'views:reset';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Reset all view-counts for all entities.';
/**
* Create a new command instance.
*
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
\Views::resetAll();
}
}