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");