public function getUserActivity($user, $limit = null, $name = null)
    {
        $user = $this->getUserId($user);

        $modelName = $this->getModelName();

        $activity = $modelName::belongsToUser($user);

        if ( ! is_null($limit))
        {
            $activity->limit($limit);
        }

        if ($name)
        {
            if ( ! is_array($name))
            {
                $name = [$name];
            }

            $activity->whereIn('name', $name);
        }

        return $activity->latest()->get();
    }