$places
->whereHas(....)
->orWhereNotExists(function ($query) {
$query->select(DB::raw(1))
->from('leases')
->whereRaw('leases.place_id = places.id');
})
"repositories": [
{
"type": "package",
"package": {
"name": "username/packagename",
"version": "master",
"source": {
"url": "",
"type": "git",
"reference": "master"
},
"autoload": {
"classmap": [""]
}
}
}
],