for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* NOTICE OF LICENSE
*
* Part of the Rinvex Fort Package.
* This source file is subject to The MIT License (MIT)
* that is bundled with this package in the LICENSE file.
* Package: Rinvex Fort Package
* License: The MIT License (MIT)
* Link: https://rinvex.com
*/
declare(strict_types=1);
namespace Rinvex\Fort\Console\Commands;
use Illuminate\Console\Command;
class ClearResetsCommand extends Command
{
/**
* The name and signature of the console command.
* @var string
protected $signature = 'auth:clear-resets {name? : The name of the password broker}';
* The console command description.
protected $description = 'Flush expired password reset tokens';
* Execute the console command.
* @return void
public function fire()
$this->laravel['auth.password']->broker($this->argument('name'))->getRepository()->deleteExpired();
$this->info('Expired reset tokens cleared!');
}