laravel chain query builder code example
Example: laravel chain query builder
DB::table('users')
->join('contacts', function ($join) {
$join
->on('users.id', '=', 'contacts.user_id')
->orOn('users.id', '=', 'contacts.proxy_user_id');
})
->get();