missing('member.is_member')) { if (isset($_SERVER['HTTP_SEC_FETCH_DEST']) && $_SERVER['HTTP_SEC_FETCH_DEST'] === 'iframe') { echo ""; } else { return redirect()->route('member-login')->with(['url.intended' => url()->current()]); } } return $next($request); } }