Answers for "query builder in laravel"

PHP
7

laravel not in query

DB::table(..)->select(..)->whereNotIn('book_price', [100,200])->get();
Posted by: Guest on September-26-2020
7

laravel wher in

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

laravel db::query update

DB::table('user')->where('email', $userEmail)->update(array('member_type' => $plan));
Posted by: Guest on November-19-2020
2

laravel query builder select

use Illuminate\Support\Facades\DB;

$users = DB::table('users')
            ->select('name', 'email as user_email')
            ->get();
Posted by: Guest on August-14-2021
1

laravel query builder

$email = DB::table('users')->where('name', 'John')->value('email');
Posted by: Guest on September-11-2021
1

DB::table('users')->get();

$users = DB::table('users')->get();
Posted by: Guest on October-22-2020

Code answers related to "query builder in laravel"

Browse Popular Code Answers by Language