Answer the question
In order to leave comments, you need to log in
How to pass a string to Livewire?
This is how it works:
<livewire:users.show-user-card-by-id :label="$label" :name="$name"/>
<livewire:users.show-user-card-by-id :label="Лейбл" :name="Мое имя"/>
Answer the question
In order to leave comments, you need to log in
The documentation must be read. The colon before the parameter name is needed only for variables, static values without it.
https://laravel.com/docs/9.x/blade#passing-data-to...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question