for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LaravelPlus\Extension\Commands;
use Illuminate\Console\Command;
/**
* @author Fumio Furukawa <[email protected]>
*/
class HashMakeCommand extends Command
{
* The console command signature.
*
* @var string
protected $signature = 'hash:make
{string : Plain string.}
{--cost=10 : Cost of generate.}
';
* The console command description.
protected $description = '[+] Make hashed value';
* Execute the console command.
* @return mixed
public function handle()
$cost = $this->option('cost');
$hashed = app('hash')->make($this->argument('string'), [
'rounds' => $cost,
]);
$this->info(sprintf('Generated hash: "%s"', $hashed));
}