Answers for "laravel unique email validation"

PHP
1

laravel validation unique email

'email' => 'unique:users,email_address,'.$user->id
Posted by: Guest on April-16-2021
1

laravel unique validation

/**
 * Store a new blog post.
 *
 * @param  Request  $request
 * @return Response
 */

public function store(Request $request)
{
    $validatedData = $request->validate([
        'title' => 'required|unique:posts|max:255',
        'body' => 'required',
    ]);

    // The blog post is valid...
}
Posted by: Guest on June-03-2020
0

laravel update email unique

update email unique
'email' => 'unique:users,email_address,'.$user->id
Posted by: Guest on September-06-2021
0

email validation in laravel

$validator = Validator::make($request->all(), []);

 $validator->sometimes('email', 'unique:users,email', function ($input) {
            return $input->email !== Auth::user()->email;
        });
//@sujay
Posted by: Guest on October-09-2020

Code answers related to "laravel unique email validation"

Browse Popular Code Answers by Language