laravel create array from collection input code example Example: add to collection laravel $item = collect(); $item->push($product);