Answers for "join table laravel query"

PHP
3

laravel join

$users = DB::table('users')
            ->join('contacts', 'users.id', '=', 'contacts.user_id')
            ->join('orders', 'users.id', '=', 'orders.user_id')
            ->select('users.*', 'contacts.phone', 'orders.price')
            ->get();
Posted by: Guest on April-29-2020
1

DB::table('users')->get();

$users = DB::table('users')->get();
Posted by: Guest on October-22-2020

Browse Popular Code Answers by Language