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
*/
namespace Rinvex\Fort\Console\Commands;
use Illuminate\Console\Command;
class PasswordTokenClearCommand extends Command
{
/**
* The name and signature of the console command.
* @var string
protected $signature = 'fort:reset:clear {broker? : 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 handle()
$this->laravel['rinvex.fort.resetter']->broker($this->argument('broker'))->getTokenRepository()->deleteExpired();
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.
$this->info('Expired reset tokens cleared!');
}
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.