Answers for "how to use where and and clause in laravel search"

PHP
0

laravel where in

$users = DB::table('users')->whereIn('id', array(1, 2, 3))->get()
Posted by: Guest on June-24-2021
1

where clause in laravel

$users = DB::table('user')->select('id', 'name', 'email','api_token','created_at')->where('email' , $email)->get();
        return response()->json($users);
Posted by: Guest on December-02-2021

Code answers related to "how to use where and and clause in laravel search"

Browse Popular Code Answers by Language