/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { try { Midia::excluir($id, $this->tipo_midia); Produtos::destroy($id); session()->flash('flash_message', 'Registro apagado com sucesso'); } catch (\Exception $e) { LogR::exception('destroy produto', $e); session()->flash('flash_message', 'Ops!! Ocorreu algum problema!. ' . $e->getMessage()); } return Redirect::back(); }