burimb
2 weeks ago
113
4
Laravel

What's the difference btw these methods?

Posted 2 weeks 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.