/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $dia = DiaInhabil::find($id); if (is_null($dia)) { return \Redirect::route('diainhabil.index')->withErrors(['error' => "El día enviado no existe"]); } $dia->delete(); return \Redirect::route('diainhabil.index')->with('message', 'El día inhábil fue eliminado con éxito.'); }