Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

WHERE NOT EXISTS laravel

$repairJobs = RepairJob::with('repairJobPhoto', 'city', 'vehicle')
              ->where('active', '=', 'Y')
              ->whereNotExists(function($query)
                {
                    $query->select(DB::raw(1))
                          ->from('DismissedRequest')
                          ->whereRaw('RepairJob.id = DismissedRequest.id');
                })->get();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #WHERE #NOT #EXISTS #laravel
ADD COMMENT
Topic
Name
2+4 =