Answers for "query on laravel"

PHP
7

laravel wher in

$users = DB::table('users')
                    ->whereIn('id', [1, 2, 3])
                    ->get();
Posted by: Guest on April-30-2020
0

laravel sql query

use Illuminate\Support\Facades\DB;

$users = DB::select('select * from users');

foreach ($users as $user) {
    echo $user->name;
}
Posted by: Guest on January-07-2021
0

laravel find query

foreach (Flight::where('foo', 'bar')->cursor() as $flight) {
    //
}
Posted by: Guest on October-08-2020

Code answers related to "query on laravel"

Browse Popular Code Answers by Language