public function store(Request $request)
    {
        $config = $request->input('config');

        foreach (array_dot($request->input('data')) as $key => $value) {
            $path = $config . '.' . $key;
            $this->destroy($path);
            if (is_array($value)) {
                $value = implode(',', $value);
            }
            Configuration::create(['key' => $path, 'value' => $value]);
        }

        return $this->notifySuccess(trans('cms::config.success', ['config' => $config]));
    }
public function store(Request $request)
    {
        $config = $request->input('config');

        foreach (array_dot($request->input('data')) as $key => $value) {
            $path = $config . '.' . $key;
            $this->destroy($path);
            if (is_array($value)) {
                $value = implode(',', $value);
            }
            Configuration::create(['key' => $path, 'value' => $value]);
        }

        return $this->notifySuccess(trans('cms::config.success', ['config' => $config]));
    }
public function store ( Request $ request ) { $ config = $ request -> input ( 'config' ) ; foreach ( array_dot ( $ request -> input ( 'data' ) ) as $ key => $ value ) { $ path = $ config . '.' . $ key ; $ this -> destroy ( $ path ) ; if ( is_array ( $ value ) ) { $ value = implode ( ',' , $ value ) ; } Configuration :: create ( [ 'key' => $ path , 'value' => $ value ] ) ; } return $ this -> notifySuccess ( trans ( 'cms::config.success' , [ 'config' => $ config ] ) ) ; }
Store submitted configurations.

@param \Illuminate\Http\Request $request
@return \Illuminate\Http\JsonResponse
Store submitted configurations .