protected function types()
    {
        $types   = app(LogTypes::class)->select(['name', 'id'])->get();
        $options = ['' => trans('antares/logger::messages.all')];
        foreach ($types as $type) {
            array_set($options, $type->name, ucfirst(Str::humanize($type->name)));
        }
        $this->resolveExtensionsUsingApi($options);
        return $options;
    }