1 | <?php |
||
2 | |||
3 | namespace Squadron\Base\Console\Commands; |
||
4 | |||
5 | use Illuminate\Console\Command; |
||
6 | use Illuminate\Support\Facades\Hash; |
||
7 | |||
8 | class HashString extends Command |
||
9 | { |
||
10 | protected $signature = 'squadron:utils:hash {value : The string that will be hashed}'; |
||
11 | protected $description = 'Get hash of the string'; |
||
12 | |||
13 | /** |
||
14 | * Execute the console command. |
||
15 | */ |
||
16 | public function handle(): void |
||
17 | { |
||
18 | $this->info(sprintf('Hash: %s', Hash::make($this->argument('value')))); |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
19 | } |
||
20 | } |
||
21 |