/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { //Eliminate first his pet $clientPets = Pet::getPetByClientId($id); foreach ($clientPets as $clientPet) { $clientPet->delete(); } $client = Client::find($id); $client->delete(); Session::flash('message', 'Cliente eliminado correctamente'); return Redirect::to('/client'); }