SIGN IN SIGN UP
BookStackApp / BookStack UNCLAIMED

A platform to create documentation/wiki content built with PHP & Laravel

0 0 15 PHP
<?php
namespace BookStack\Console\Commands;
2023-05-17 17:56:55 +01:00
use BookStack\Activity\Models\Activity;
use Illuminate\Console\Command;
class ClearActivityCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'bookstack:clear-activity';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Clear user (audit-log) activity from the system';
/**
* Execute the console command.
*/
public function handle(): int
{
Activity::query()->truncate();
$this->comment('System activity cleared');
return 0;
}
}