Eloquent::whereDoesntHave PHP Method

whereDoesntHave() public static method

Add a relationship count / exists condition to the query with where clauses.
public static whereDoesntHave ( string $relation, Closure | null $callback = null ) : Builder | static
$relation string
$callback Closure | null
return Illuminate\Database\Eloquent\Builder | static
        public static function whereDoesntHave($relation, $callback = null)
        {
            return \Illuminate\Database\Eloquent\Builder::whereDoesntHave($relation, $callback);
        }
Eloquent