Laravel 5: Creating Combinations of Elements With crossJoin
The crossJoin method can be used to combine the input arrays; the resulting array will contain all of the possible combinations of the input array values.The signature of the crossJoin method is: 1 public static function crossJoin ( 2 ... $ arrays...