how to convert laravel collection to object code example Example: laravel convert eloquent collection to collection collect(Order::get()->all());