Bladephp: Now with 8+ codeigniter, php, and laravel project 8+ php project From $37/Month From Rs. 2499/Month

Cross Join Query in Laravel 5

mysql laravel
Cross Join Query in Laravel 5

To perform a "cross join" use the crossJoin method with the name of the table you wish to cross join to. Cross joins generate a Cartesian product between the first table and the joined table.

Let’s create a crossJoin method in laravel 5

$salehistory = DB::table('sale_history')


Html code work in comment box

Related Post