Let's get started quickly with Password Validation here to make Password more powerful
$request->validate([
'password' => ['required','confirmed', Rules\Password::defaults()->mixedCase()->min(12)],
])
You can enforce specific rules when validating user-supplied passwords by using the method. It includes options for requiring letters, numbers, symbols, and more :-
Arr::whereNotNull() method which filters out null values from an array:
Arr::whereNotNull([null, 0, false, '', null, []]);
// returns [0, false, '', []]
Source :- https://www.youtube.com/watch?v=_TlQPp-dG1k
Source :- https://laravel-news.com/laravel-8-75-0
I hope you enjoyed the code.
Top comments (0)