예제 #1
0
 public function show($id)
 {
     $band = Bands::find($id);
     return View::make('musicshow', ['band' => $band]);
 }
예제 #2
0
 public function remove($id)
 {
     if (Input::has('confirmed_delete')) {
         try {
             //$band = Bands::where('id', '=', $id)->get();
             $band = Bands::find($id);
             Bands::where('id', '=', $id)->delete();
             return Redirect::to('admin/bands/');
         } catch (Illuminate\Database\Eloquent\ModelNotFoundException $e) {
             return View::make('admin.bands.delete', ['status' => 'unsuccessful', 'band' => $band, 'id' => $id]);
         }
     }
 }