/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit(Apartment $apartment) { // $properties = Property::lists('abbreviation', 'id'); //$apartment = Apartment::with('property')->find($id); return view('apartments.edit', ['title' => 'Edit Apartment', 'properties' => $properties, 'apartment' => $apartment]); }