Laravel PHP Developer Question:
Tell me how To Use Select Query In Laravel?
Answer:
$users = DB::select('select * from users where city_id = ?', 10);
if(!empty($users)){
foreach($users as $user){
}
}
if(!empty($users)){
foreach($users as $user){
}
}
Previous Question | Next Question |
Explain me what directories that need to be writable laravel installation? | Tell us do you have any experience with LAMP? |