src/Http/Controllers/SettingController.php
public function update(UpdateRequest $request)
    {
        $data = $request->all();

        $model = $this->repository->getSettingByKey($data['key']);

        $model->update( $data );

        \Cache::tags('response')->flush();

        return $this->successJsonResponse();
    }
public function update(UpdateRequest $request)
    {
        $data = $request->all();

        $model = $this->repository->getSettingByKey($data['key']);

        $model->update( $data );

        \Cache::tags('response')->flush();

        return $this->successJsonResponse();
    }
Update

@param UpdateRequest $request

@return \Illuminate\Http\JsonResponse