Im using datatables for displaying data from 3 tables, the problem is if vendor_id in check table is empty,will not display the row and so on So I want to display all data even if the columns that are in relationship with other tables empty
Controller
$vendorTableName= with(new Vendors())->getTable();
$categoryTableName= with(new Excategories())->getTable();
$orders =Checks::select(["checks.*","vendors.vendor_name","excategories.category_name"])->between($start, $end)->join($vendorTableName,$vendorTableName.".vendor_id","=","checks.vendor_id")->join($categoryTableName,$categoryTableName.".category_id","=","checks.category_id");