@php $tests = Auth::user()->profil->habilitations; $droits = array(); foreach ($tests as $key => $value) { $droits[$key] = $value->habilitation->code; } if ($errors->any()) { foreach ($errors->all() as $key => $error) { Toastr::error($error, "Erreur : N°$key"); } } @endphp
@yield('title')