Answers for "select table in onther table laravel"

PHP
0

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

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

laravel find query

use AppModelsDestination;
use AppModelsFlight;

return Destination::addSelect(['last_flight' => Flight::select('name')
    ->whereColumn('destination_id', 'destinations.id')
    ->orderBy('arrived_at', 'desc')
    ->limit(1)
])->get();
Posted by: Guest on October-08-2020

Code answers related to "select table in onther table laravel"

Browse Popular Code Answers by Language