hasRole($user->id)['rol'] == $rol ){ return $next($request); } } return redirect('inicio'); } }