Level 13
I think you have to add something like this and check.
@if ($message = Session::get('error'))
<div class="alert alert-success">
<p>{{ $message }}</p>
</div>
@endif
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I use * for validate array
return [
'roles.*' => 'required|in:' . $roles_id,
];
How can I print the errors? (What I need to write in the has? .* not work)
@if ($errors->has('roles'))
{{ $errors->first('roles.*') }}
@endif
Please or to participate in this conversation.