/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { Property::destroy($id); //PropertyValue::where('property_id','=',$id)->delete(); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy(Request $request) { Property::destroy($request->id); return Redirect::route('properties.index'); }