Laravel PHP Developer Question:

Tell me how To Use Select Query In Laravel?

Tweet Share WhatsApp

Answer:

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

if(!empty($users)){
foreach($users as $user){
}
}

Read All 65 Laravel PHP Developer Questions
Previous QuestionNext Question
Explain me what directories that need to be writable laravel installation?Tell us do you have any experience with LAMP?