I have a table customer in my database:
Customer Id_customer name surname ...
And an array of id_customers:
$c = array[2,4,8,9]
I can obtain the customers like this:
$customers = Customer::all();
But, how can I obtain in Laravel just the customer contained in the array?
$customers = Customer::all()->where(?¿?¿);
Very thanks in advance
Customer::whereIn('Id_customer',$c)->get()