Answers for "wherein and where laravel"

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
0

where in laravel

$users = Users::whereIn('id', array(1, 2, 3))->get()
Posted by: Guest on July-27-2021
0

laravel where and where

Table::where('Column', Value)->where('NewColumn', Value)->get();
Posted by: Guest on September-04-2020

Browse Popular Code Answers by Language