Laravel - Query Builder - Cross Join Clause

You may use the crossJoin method to perform a "cross join". Cross joins generate a cartesian product between the first table and the joined table:

    
    $sizes = DB::table('sizes')
                ->crossJoin('colors')
                ->get();