예제 #1
0
 /**
  * Show the form for editing the specified pod.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $pod = Pod::find($id);
     $apiPods = DB::connection('mysql2')->select('select * from tbl_pods');
     foreach ($apiPods as $apiPod) {
         $poddata[$apiPod->id] = $apiPod->pod;
     }
     return View::make('pods.edit', compact('pod', 'poddata'));
 }