How to Exclude null relation in laravel eloquent oracle and mysql relation
{
"rn": "1",
"supplier": "700030",
"sup_name": "test-supp",
"contracts": null
}
this is the piece of an example the supplier is oracle database while the contracts is mysql how to exclude that im using with method in laravelController and belongsTo in model i want to exclude if the relation is null
@Tray2 it throws error sir
$data = Supplier::with('contracts')
->paginate(10);
this is my query in controller by the way the Supplier is Oracle db while the contracts inside in with method is mysql db