public function allToArray($locale, $group, $namespace = null)
    {
        $args = func_get_args();
        $args[] = config('app.locale');

        return $this->executeCallback(static::class, __FUNCTION__, $args, function () use ($locale, $group) {
            $array = DB::table('translations')
                    ->select(DB::raw("JSON_UNQUOTE(JSON_EXTRACT(`translation`, '$.".$locale."')) AS translation"), 'key')
                    ->where('group', $group)
                    ->pluck('translation', 'key')
                    ->all();

            return $array;
        });
    }