Beispiel #1
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     $set = Set::with('items')->find($id);
     if (is_object($set)) {
         return Response::json($set, 200);
     } else {
         return Response::json(null, 404);
     }
 }