Ejemplo n.º 1
0
 /**
  * Display a listing of podbatteries
  *
  * @return Response
  */
 public function index()
 {
     $podbatteries = PodBattery::all();
     /*foreach($podbatteries as $podbattery){
                      
              
                  $podInventorys = $podbattery->podInventory()->get();
                  foreach($podInventorys as $podInventory){
                          
                           $pods = $podInventory->pod()->get();
                           foreach($pods as $pod){
     
                                 $apiPod =  $pod->apiPod()->get();
     				             echo "<pre>";
     				             print_r($apiPod->toArray());
     				             echo '</pre>';
                           }
                  } 
                  
                     
                       
                 
     		}*/
     return View::make('podbatteries.index', compact('podbatteries'));
 }