lundi 5 octobre 2015

query builder join and get the specified record laravel

I'm joing two table and then find the specified record but unfortunately it doesnt work.

$users = DB::table('users')
        ->join('user_details', 'users.id', '=', 'user_details.id')
        //->select('users.*', 'contacts.phone', 'orders.price')
        ->get()->find(1);

any ideas help?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire