/**
  * Update the specified resource in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function update(Resource $resource, ResourceRequest $request)
 {
     $resource->update($request->only('name'));
     return redirect()->route('admin.resources.index');
 }