laravel-notify
laravel-notify copied to clipboard
How to show validation error?
I put validation in my controller but when any validation fails then it is not showing any message.
$request->validate([ 'name' => 'required', ]);
Hi @BilawalSh how did you access the validation on the front-end
This is the point that is unclear in the documentation.
I am doing this way
@if ($errors->any())
@foreach ($errors->all() as $error)
@php
notify()->error($error);
@endphp
@endforeach
@endif