Answers for "where function laravel"

PHP
6

laravel orWhere

$camps = $field->camps()->where('status', 0)->where(function ($q) {
    $q->where('sex', Auth::user()->sex)->orWhere('sex', 0);
})->get();
Posted by: Guest on October-20-2020
8

laravel where like

$users = DB::table('users')
                ->where('name', 'like', 'T%')
                ->get();
Posted by: Guest on May-13-2020
2

wherein laravel

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

laravel db::query update

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

where in laravel

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

laravel where

$users = DB::table('users')
                ->whereDate('created_at', '2016-12-31')
                ->get();
Posted by: Guest on September-14-2020

Browse Popular Code Answers by Language