public function update($name, UpdateSettingItemRequest $request, System $systemBundle)
    {
        $this->repository->updateByBundle($systemBundle, $name, $request->input('value'));
        $setting = $systemBundle->getSetting($name);

        return $this->sendResponse($setting, 'Setting item updated successfully.');
    }
public function update($name, UpdateSettingItemRequest $request, System $systemBundle)
    {
        $this->repository->updateByBundle($systemBundle, $name, $request->input('value'));
        $setting = $systemBundle->getSetting($name);

        return $this->sendResponse($setting, 'Setting item updated successfully.');
    }
public function update ( $ name , UpdateSettingItemRequest $ request , System $ systemBundle ) { $ this -> repository -> updateByBundle ( $ systemBundle , $ name , $ request -> input ( 'value' ) ) ; $ setting = $ systemBundle -> getSetting ( $ name ) ; return $ this -> sendResponse ( $ setting , 'Setting item updated successfully.' ) ; }
Update the specified system Setting in storage.

@param    string $name
@param  UpdateSettingItemRequest $request

@param System $systemBundle
@return  JsonResponse
Update the specified system Setting in storage .