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

        if (empty($files)) {
            Cms::notification('File not found', 'warning');

            return redirect(route($this->routeBase.'.files.index'));
        }

        $files = $this->repository->update($files, $request->all());

        Cms::notification('File updated successfully.', 'success');

        return Redirect::back();
    }
public function update($id, FileRequest $request)
    {
        $files = $this->repository->find($id);

        if (empty($files)) {
            Cms::notification('File not found', 'warning');

            return redirect(route($this->routeBase.'.files.index'));
        }

        $files = $this->repository->update($files, $request->all());

        Cms::notification('File updated successfully.', 'success');

        return Redirect::back();
    }
public function update ( $ id , FileRequest $ request ) { $ files = $ this -> repository -> find ( $ id ) ; if ( empty ( $ files ) ) { Cms :: notification ( 'File not found' , 'warning' ) ; return redirect ( route ( $ this -> routeBase . '.files.index' ) ) ; } $ files = $ this -> repository -> update ( $ files , $ request -> all ( ) ) ; Cms :: notification ( 'File updated successfully.' , 'success' ) ; return Redirect :: back ( ) ; }
Update the specified Files in storage.

@param int         $id
@param FileRequest $request

@return Response
Update the specified Files in storage .