Laravel - Collections - Method MakeVisible
The makeVisible
method makes attributes visible that are typically "hidden" on each model in the collection:
$users = $users->makeVisible(['address', 'phone_number']);
The makeVisible
method makes attributes visible that are typically "hidden" on each model in the collection:
$users = $users->makeVisible(['address', 'phone_number']);