get an array of variable from collections laravel code example Example: add to collection laravel $item = collect(); $item->push($product);