Created
March 1, 2019 14:14
-
-
Save d8vjork/c54a5c2acc37683e67501cfa051172a1 to your computer and use it in GitHub Desktop.
One line validation include element, useful for inline validation messages (Laravel 5.4+)
This file contains 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
@includeWhen($errors->has('email'), 'shared.validation', ['message' => $errors->first('email')]) |
This file contains 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
<span class="invalid-feedback" role="alert"> | |
<strong>{{ $message }}</strong> | |
</span> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment