/** * Remove the specified resource from storage. * * @param int $id * @return \Symfony\Component\HttpFoundation\Response */ public function destroy($id) { $property = $this->properties->getById($id); $property->delete(); return $this->respondWithItem($property, new PropertyTransformer()); }
/** * Show the form to update a Property. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $property = $this->properties->getById($id); return view('properties.edit', compact('property')); }