Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[9.x] Added callback support on implode Collection method. (#41405)
* [9.x] Added callback support on implode Collection method. Allow to use a callback as `$value` on `implode` Collection method to simplify -`>map()->implode()` calls: Before: ```php <span>{{ $user->cities->map(fn ($city) => $city->name.' ('.$city->state->name.')')->implode(', ') }}</span> ``` After: ```php <span>{{ $user->cities->implode(fn ($city) => $city->name.' ('.$city->state->name.')', ', ') }}</span> ``` * Added implode callback test
- Loading branch information