Tu peux utiliser la fonction array_map :
$users = array_map(function ($user) {
$user->link = ...
}, $users);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community