Render HTML (eg. link) in a field label()
.
Return an HtmlString
object in order to add HTML to a field label.
use Illuminate\Support\HtmlString; Forms\Components\Checkbox::make('accept') ->label(fn() => new HtmlString('I accept the <a class="underline" href="/terms" target="_blank">terms and conditions</a>')) ->required(),
Tip given by sandeshkumard