Illuminate\Database\Query\Builder::orWhereExists PHP Method

orWhereExists() public method

Add an or exists clause to the query.
public orWhereExists ( Closure $callback, boolean $not = false ) : Builder | static
$callback Closure
$not boolean
return Builder | static
    public function orWhereExists(Closure $callback, $not = false)
    {
        return $this->whereExists($callback, 'or', $not);
    }

Usage Example

Example #1
0
 /**
  * Add an or exists clause to the query.
  *
  * @param \Closure $callback
  * @param bool $not
  * @return \Illuminate\Database\Query\Builder|static 
  * @static 
  */
 public static function orWhereExists($callback, $not = false)
 {
     return \Illuminate\Database\Query\Builder::orWhereExists($callback, $not);
 }