Laravel 5 Collections: Creating Combination of Elements With crossJoin
The crossJoin method is used to join the items within the collection instance with the values of the input arrays, or collections, with all possible permutations expressed. The final output of the crossJoin method will be a Cartesian product,...