Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Aido21's avatar

What is the syntax with 'x-forms' in Laravel blade templates

I am new to Laravel. I got a Laravel code that uses x-forms syntax in blade templates like this:

<x-forms.select fieldId="locale" :fieldLabel="__lang"
                fieldName="locale" search="true">
                ...
 </x-forms.select>

I am confused about what is it and how to disable the select element for example. If I just add disabled to x-forms.select tag - it does not work properly.

0 likes
4 replies
tisuchi's avatar

@aido21 How about :disabled="true"?

<x-forms.select fieldId="locale" :fieldLabel="__lang" fieldName="locale" search="true" :disabled="true"> ... </x-forms.select>
Aido21's avatar

Thank you Sinnbeck, I will have a look

Dear tisuchi, it does not work too.

Aido21's avatar

Sinnbeck, tisuhi,

thank you so much again. it is clear now.

Have a good day

Please or to participate in this conversation.