A
A
Alexander2022-04-01 16:30:51
Laravel
Alexander, 2022-04-01 16:30:51

How to pass a string to Livewire?

This is how it works:

<livewire:users.show-user-card-by-id :label="$label" :name="$name"/>

So the error is:
<livewire:users.show-user-card-by-id :label="Лейбл" :name="Мое имя"/>


Actually how to transfer a line?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TheAndrey7, 2022-04-02
@TheAndrey7

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 question

Ask a Question

731 491 924 answers to any question