$key]) ->translations() ->updateOrCreate( ['locale' => request('locale')], ['value' => request('value', '')] ); return trans('admin::messages.resource_updated', ['resource' => trans('translation::translations.translation')]); } }