Tell me how To Use Select Query In Laravel?

Submitted by: Muhammad
$users = DB::select('select * from users where city_id = ?', 10);

if(!empty($users)){
foreach($users as $user){
}
}
Submitted by: Muhammad

Read Online Laravel PHP Developer Job Interview Questions And Answers