for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Pratiksh\Adminetic\Console\Commands;
use Illuminate\Console\Command;
use Spatie\Activitylog\Models\Activity;
class ClearActivityLogCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'activity:clear';
* The console command description.
protected $description = 'Command to clear activity log';
* Create a new command instance.
* @return void
public function __construct()
parent::__construct();
}
* Execute the console command.
* @return int
public function handle()
Activity::truncate();
$this->info('Activity log cleared!');