mardi 1 septembre 2015

Laravel Combine DB Queries

Is it possible to combine the following two queries into one?

$session_id = DB::table('oauth_access_tokens')->where('id', '=', $access_token)->value('session_id');
$owner_id = DB::table('oauth_sessions')->where('id', '=', $session_id)->value('owner_id');

Thanks for your help!



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1O5Cvgh
via IFTTT

Aucun commentaire:

Enregistrer un commentaire