Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ErMandeep/066b25a176b4ab0177c36b45eb29e33b to your computer and use it in GitHub Desktop.
Save ErMandeep/066b25a176b4ab0177c36b45eb29e33b to your computer and use it in GitHub Desktop.
Add Custom validation messages in larval
if($check_email > 0){
$validator->getMessageBag()->add('email', 'Email already in use');
}
dd($validator->messages());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment