Answer the question
In order to leave comments, you need to log in
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.
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question