D
D
dmytrotus2020-11-01 16:12:34
Laravel
dmytrotus, 2020-11-01 16:12:34

Why is Livewire Laravel not updating data from DB?

Hi all.
I can't figure out why Livewire is not updating the data from the database.
The counter from the standard tutorial works.
And as I noticed, everything works within the class.
But as soon as you need to update the data from the database, it stops working.
https://laravel-livewire.com/docs/2.x/quickstart

On the first screenshot is my class,
and on the second, the state is after I changed the id from 2 to 4.
That is, at first the data that is needed is displayed, but when updated, it is not displayed.

Prompt in what there can be a reason of such behavior.

5f9eb3efb4154502416991.jpeg
5f9eb3f833ec4352019940.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kuznetsov, 2020-11-01
@dima9595

Well, maybe because you explicitly say: "pull me out of the database id = 2, in any case"!?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question