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