Please help
I’m struggling on passing data to my view, whenever I declare 2 variables everything works fine, but I’m trying to add a third one and it displays as undefined
public function render()
{
return view(‘livewire.mystore’, [‘part’ => Mypart::where(‘status’, ‘done’)->get()], [‘orders’ => Order::where(‘delivered’, false)->get()], [‘products’ => SoldProducts::latest()->take(50)->get()]);
}
Sorry if this is a dumb question, but I’ve searched about it with no success.