for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Coyote\Console\Commands;
use Coyote\Repositories\Contracts\NotificationRepositoryInterface;
use Illuminate\Console\Command;
class PurgeNotificationsCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'notifications:purge';
* The console command description.
protected $description = 'Purge old notifications.';
public function handle(NotificationRepositoryInterface $notification)
$notification->purge();
$this->info('Done.');
}