Passing Data from livewire

What seems to be the problem:
hellow guys, anyone can help me please

i have problem when i want passing data to componens on SPA Method.

on my case, how for getting the $query ? if with my way i cant access $query

Steps to Reproduce:

Are you using the latest version of Livewire:

Do you have any screenshots or code examples:

In Livewire components, you use mount() instead of a class constructor __construct().

the __construct method is reserved on livewire component. So, you can’t use it. instead use mount or pass your model directly like this:

public Logdata $logdata;

and you are good to go.

1 Like