burimb
2 months ago
440
3
Laravel

What's the difference btw these methods?

Posted 2 months ago by burimb
public static function withArchived()
{
     return (new static)->newQueryWithoutScope('active');
}   

and

public static function withArchived()
{
    return self::withoutGlobalScope('active');
}

Please sign in or create an account to participate in this conversation.