Search
 
SCRIPT & CODE EXAMPLE
 

PHP

validate password laravel

        $request->validate([
            'email' =>'required|exists:users',
            'password'=>'required|password'
        ]);
Comment

validate user password laravel8

    $data = request()->validate([
        'firstname' => ['required', 'string', 'max:255'],
        'lastname' => ['required', 'string', 'max:255'],
        'username' => ['bail', 'nullable', 'string', 'max:255', 'unique:users'],
        'email' => ['bail', 'nullable', 'string', 'email:rfc,strict,dns,spoof,filter', 'max:255', 'unique:users'],
        'new_password' => ['nullable', 'string', 'min:8'],
        'confirm_new_password' => ['nullable', 'required_with:new_password', 'same:new_password'],
        'current_password' => ['required', function ($attribute, $value, $fail) {
            if (!Hash::check($value, Auth::user()->password)) {
                return $fail(__('The current password is incorrect.'));
            }
        }]
    ]);
Comment

PREVIOUS NEXT
Code Example
Php :: get parameter php 
Php :: use model from variable laravel 
Php :: regex php password 
Php :: replace multiple characters one string php 
Php :: php remove all whitespace from a string 
Php :: php get keys and values from array 
Php :: $errors show this error in laravel 
Php :: carbon equal dates 
Php :: laravel file permissions 
Php :: php laravel intervention base64 to image save 
Php :: public_path laravel 
Php :: session cakephp 
Php :: laravel delete 
Php :: call php from html 
Php :: laravel controller store 
Php :: var_dump php 
Php :: laravel csrf token off 
Php :: php regex string contains coringa 
Php :: php array check value exists 
Php :: laravel get first letter of each word 
Php :: unlink is a directory laravel 
Php :: laravel migrate specific table 
Php :: get first name user 
Php :: get database columns laravel 
Php :: php numberformatter currency without symbol 
Php :: php binary to base64 
Php :: php do while loop 
Php :: contact form 7 remove p 
Php :: filter validate email php 
Php :: add custom style to wordpress editor 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =