eloquent when foreach code example Example: laravel collection namespace Illuminate\Database\Eloquent\Collection