public function scopeType($query, int $type = Tracker::TRACKER_ANY)
    {
        if ($type === Tracker::TRACKER_ANY) {
            return null;
        }

        return $query->where('trackable_type', $type);
    }