role_id == 1) { return $next($request); } return redirect('/')->with('error','You have not admin access'); } }