Created
August 19, 2021 21:29
-
-
Save JacquesvanWyk/3f9469a915a55ea66c7bbd5f2a045a0c to your computer and use it in GitHub Desktop.
Create a custom message on a validation field
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$request->validate([ | |
'name' => 'required', | |
], | |
[ | |
'name.required' => 'Custom message for validation', | |
] | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment