Esempio n. 1
0
 /**
  * Restore the specified resource from storage.
  *
  * @param  int $id
  *
  * @return Response
  */
 public function restore($id)
 {
     if ($resource = $this->resource->onlyTrashed()->find($id) and $resource->restore()) {
         Session::flash('success', sprintf(_('%s successfully restored'), $resource));
     }
     return redirect()->route("{$this->prefix}.index");
 }