/**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     //
     $d = ImageDataSet::findOrFail($id);
     \DebugBar::info($d->categories);
     //->get());
     return view('app.dataset', ['title' => 'Dataset', 'dataset' => $d, 'categories' => $d->categories]);
 }
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($dbID, $id)
 {
     //
     $cat = \App\ImageCategory::find($id);
     return view('app.category', ['title' => $dbID, 'db' => \App\ImageDataSet::find($dbID), 'cat' => $cat, 'images' => $cat->ImageItems]);
 }