@props([ 'id', 'errorId' => null, 'hostLabel' => 'Domain', 'hostPlaceholder' => 'app.example.com', ])
@error($errorId ?? "{$id}.host") @php preg_match('/(https?:\/\/\S+)$/', $message, $validationLinkMatches); $validationLink = $validationLinkMatches[1] ?? null; @endphp

@if ($validationLink) {{ str($message)->beforeLast($validationLink)->trim() }} Set them here. @else {{ $message }} @endif

@enderror

Optional path, query, or fragment appended after the domain and port.