public function update($id, UpdateUploadRequest $request)
    {
        $upload = $this->repository->find($id);

        if (empty($upload)) {
            return $this->sendError('Upload not found');
        }
        $all = $request->all();

        $upload = $this->repository->update($all, $id);
        $upload->load($request->getWith());

        return $this->sendResponse($upload, 'Upload updated successfully.');
    }
public function update($id, UpdateUploadRequest $request)
    {
        $upload = $this->repository->find($id);

        if (empty($upload)) {
            return $this->sendError('Upload not found');
        }
        $all = $request->all();

        $upload = $this->repository->update($all, $id);
        $upload->load($request->getWith());

        return $this->sendResponse($upload, 'Upload updated successfully.');
    }
public function update ( $ id , UpdateUploadRequest $ request ) { $ upload = $ this -> repository -> find ( $ id ) ; if ( empty ( $ upload ) ) { return $ this -> sendError ( 'Upload not found' ) ; } $ all = $ request -> all ( ) ; $ upload = $ this -> repository -> update ( $ all , $ id ) ; $ upload -> load ( $ request -> getWith ( ) ) ; return $ this -> sendResponse ( $ upload , 'Upload updated successfully.' ) ; }
Update the specified Upload in storage.

@param  int $id
@param UpdateUploadRequest $request

@return JsonResponse
Update the specified Upload in storage .