/** * Display a listing of the resource. * GET /cautas * * @return Response */ public function index() { $cartiere = Cartier::all()->toArray(); $tip_cladiri = TipCladire::all()->toArray(); $etaje = TipEtaj::all()->toArray(); $tip_compartimente = TipCompartiment::all()->toArray(); $finisaje_interioare = TipFinisajeInterne::all()->toArray(); $imobils = Imobile::with('localitate', 'judet', 'cartier', 'nrcam', 'etajapartament', 'compartiment', 'finint', 'tip_cladire')->get(); Debugbar::info($imobils->toArray()); return View::make('cauta.index')->with(compact('cartiere', 'tip_cladiri', 'etaje', 'tip_compartimente', 'finisaje_interioare', 'imobils')); }