HEX
Server: nginx/1.28.3
System: Linux lightweb-s1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User: drdrivek-71 (1047)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: /home/dnlightw-124/dn.lightweb.kr/app/Services/IsSettingsRequest.php
<?php

namespace App\Services;

use Illuminate\Http\Request;
use Illuminate\Support\Str;

class IsSettingsRequest
{
    public static function isSettingsRequest(Request $request): bool
    {
        $platFormDomain = config('platform.domain');
        $platFormPrefix = config('platform.prefix');
        if($platFormDomain != null && $request->getHost() === $platFormDomain) {
            return true;
        }
        return $platFormPrefix != null && Str::startsWith($request->path(),$platFormPrefix);
    }
}