예제 #1
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     $imovel = Imovel::findOrFail($id);
     $fotos = Foto::where('imovel_id', $id)->get();
     //return $fotos;
     return view('imovel.show', compact('imovel', 'fotos'));
 }