Answers for "laravel chain query builder"

PHP
0

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();
Posted by: Guest on May-09-2021

Browse Popular Code Answers by Language