mirror of
https://github.com/koel/koel
synced 2024-12-19 09:03:07 +00:00
18 lines
398 B
PHP
18 lines
398 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Events\LibraryChanged;
|
|
use Illuminate\Console\Command;
|
|
|
|
class PruneLibraryCommand extends Command
|
|
{
|
|
protected $signature = 'koel:prune';
|
|
protected $description = 'Remove empty artists and albums';
|
|
|
|
public function handle(): void
|
|
{
|
|
event(new LibraryChanged());
|
|
$this->info('Empty artists and albums removed.');
|
|
}
|
|
}
|