Illuminate\Database\Eloquent\Builder::doesntHave PHP Method

doesntHave() public method

Add a relationship count / exists condition to the query.
public doesntHave ( string $relation, string $boolean = 'and', Closure $callback = null ) : Builder | static
$relation string
$boolean string
$callback Closure
return Builder | static
    public function doesntHave($relation, $boolean = 'and', Closure $callback = null)
    {
        return $this->has($relation, '<', 1, $boolean, $callback);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Add a relationship count condition to the query.
  *
  * @param string $relation
  * @param string $boolean
  * @param \Closure|null $callback
  * @return \Illuminate\Database\Eloquent\Builder|static 
  * @static 
  */
 public static function doesntHave($relation, $boolean = 'and', $callback = null)
 {
     return \Illuminate\Database\Eloquent\Builder::doesntHave($relation, $boolean, $callback);
 }
All Usage Examples Of Illuminate\Database\Eloquent\Builder::doesntHave