roles()->where('nama_role', $role)->exists()) { return $next($request); } } abort(403, 'Unauthorized action.'); } }