Answers for "laravel whereIn example"

PHP
2

wherein laravel

DB::table('user')->whereIn('id', [100,200])->get();
Posted by: Guest on December-16-2020
0

laravel whereIn example

public function index()
{
    $data= User::whereIn('name', ['john','dam','smith'])->get();
   
    dd($data);                    
}
Posted by: Guest on May-13-2021

Browse Popular Code Answers by Language