Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel orWhere

$camps = $field->camps()->where('status', 0)->where(function ($q) {
    $q->where('sex', Auth::user()->sex)->orWhere('sex', 0);
})->get();
Comment

or where laravel

MyMode::where(['user_id' => 1])
            ->orWhere(['assigned_to' => 1])
            ->get();
Comment

PREVIOUS NEXT
Code Example
Php :: laravel 5.4 forelse 
Php :: wpml display language switcher 
Php :: laravel_8 
Php :: drupal 7 entity_metadata_wrapper bundle 
Php :: how import the impliment countable php 
Php :: laravel 419 page expired on login 
Php :: how to add a text to image in php 
Php :: unique sql queries laravel 
Php :: php 7.4 extension sqlite ubuntu 
Php :: array flip php 
Php :: centos excecutable php 
Php :: how to display list of all pages in wordpress 
Php :: laravel carbon first day of month 
Php :: laravel get authorization bearer token 
Php :: scan all directories and files php 
Php :: laravel return list of ids 
Php :: required field in laravel admin 
Php :: install php debian 10 
Php :: laravel relationship with for single data 
Php :: current user laravel 
Php :: centos :Install or enable PHP gd extension. 
Php :: closing a php 
Php :: add another field in existing migration laravel 
Php :: share link in facebook php 
Php :: Carbon Add Months To Date In Laravel 
Php :: carbon date minus days 
Php :: php elseif 
Php :: php iterate array keys 
Php :: non negative integer validation laravel 
Php :: phpunit repeat 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =