What seems to be the problem: I have a complex query with multiple children which I need to pass to the view. I seem to be struggling to find a working way to pass the model to the view
Steps to Reproduce:
In render method, perform query, creating variable representing model, pass model to the view using one of the following methods;
return view('myview')->withContact($contact);
return view('myview')->with(['contact' => $contact]);
return view('myview', compact('contact'));
return view('myview', ['contact' => $contact]);
Are you using the latest version of Livewire: 1.0.14
Do you have any screenshots or code examples:
I need someone to tell me this should work, so I know I’m doing something stupid… or this is not possible. ( Its not exampled in the docs. )