public function edit($id) { $imagens = imovelimagem::where('imovel_id', $id)->get(); return $imagens; }
public function edit($id) { $imovel = Imovel::find($id); $imagens = imovelimagem::where('imovel_id', $id)->get(); return view('imovel', compact('imovel', 'imagens')); }