Answers for "how get just one parameter of all objects in one array in laravel"

PHP
1

how get just one parameter of all objects in one array in laravel

$patients_id = FollowUpQuestionsAfterSurgery::
orderBy('id' , 'desc')
->pluck("patient_id");

$patients = Paitent::whereIn("id" , $patients_id)->get()->->toArray();


return array_column($patients , "follow_up");
Posted by: Guest on July-17-2021

Code answers related to "how get just one parameter of all objects in one array in laravel"

Browse Popular Code Answers by Language