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