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);
}
}