map(function ($user) { $user->name .= '_prepared_name'; return $user; })->toArray(); } }