Generate Password in Laravel PHP ( #shorts )

1 year ago
8

Hi Friends,

Generate Password in Laravel PHP

`Str::Password()` function is used to generate a random & secure password of given length. The generated password will contain letters, numbers, symbols and spaces. By default the length of password will be 32 characters.

use Illuminate\Support\Str;

$password = Str::password();

// 'EbJo3vE-AS:T,$%_gkrV4n,q~1xy/-_2'

$password = Str::password(12);

// 'qwuar#R|i]G'

#php #laravel #phplaravel #laravelpassword #password #javascript #string #javascriptstring #javascriptlearning #javascriptinterview #javascriptstringfunctions #stringfunctions #interview #interviewquestionsandanswers #question #answer #questionanswer #questionandanswer #shorts #trending #trend #popular #method #function #shorts #shortsfeed #shortvideo #short #shortsviral #viral #viralshort #viralvideo #viralshorts #chatgpt #openai #gpt3 #gpt4 #chatgpt4 #chatgpt3 #gta6 #princecheema_official @princecheema_official

Loading comments...