/** * Show all the items. * * @return Response */ public function listar() { $whereAmI = $this->ruta; $calles = Calle::with('localidad')->with('localidad.departamento')->with('localidad.departamento.provincia')->Paginate(7); $paginate_data = $this->paginateAditionalData($calles); $data = ['whereAmI' => $whereAmI, 'calles' => $calles, 'paginate_data' => $paginate_data]; return view('admin.cities.calles.index', $data); }
/** * Show all the items. * * @return Response */ public function listar() { $whereAmI = $this->ruta; $calles = Calle::with('localidad')->with('localidad.departamento')->with('localidad.departamento.provincia')->Paginate(7); $paginate_data = $this->paginateAditionalData($calles); $data = array_merge(['webpage' => $this->webpage, 'whereAmI' => $whereAmI, 'calles' => $calles, 'paginate_data' => $paginate_data], $this->data); $this->webpage['routes'] = json_encode(getUriByController()); return view('admin.cities.calles.index', $data); }