/** * Show the form for editing the specified serviconoturno. * * @param int $id * @return Response */ public function edit($id) { $serviconoturno = ServicoNoturno::find($id); return View::make('serviconoturno.edit', compact('serviconoturno')); }
/** * Remove the specified serviconoturno from storage. * * @param int $id * @return Response */ public function destroy($id) { $serviconoturno = ServicoNoturno::find($id); $serviconoturno->imagens()->delete(); $serviconoturno->delete(); return Redirect::to('admin/serviconoturno/')->with('success', array('Registro deletado.')); }