/**
  * @param $id
  * @return mixed
  */
 public function show($id)
 {
     //$species = Species::find($id);
     $species = Species::with('weights', 'type')->find($id);
     if (!$species) {
         return $this->respondNotFound('Species does not exist.');
     }
     return $this->respond(['data' => $this->speciesTransformer->transform($species)]);
 }
 public function index()
 {
     $boats = Boat::orderBy('id')->get();
     return $this->respond(['data' => $this->boatTransformer->transformCollection($boats->all())]);
 }
 public function index()
 {
     $skippers = User::with(['boats'])->has('boats')->get();
     return $this->respond(['data' => $this->skipperTransformer->transformCollection($skippers->all())]);
 }
 /**
  * @return mixed
  */
 public function index()
 {
     $categories = Category::orderBy('id')->get();
     return $this->respond(['data' => $this->categoriesTransformer->transformCollection($categories->all())]);
 }
 public function index()
 {
     $teams = Team::with(['event'])->orderBy('id')->get();
     return $this->respond(['data' => $this->teamsTransformer->transformCollection($teams->all())]);
 }
 public function index()
 {
     $speciesTypes = Type::orderBy('id')->get();
     return $this->respond(['data' => $this->speciesTypeTransformer->transformCollection($speciesTypes->all())]);
 }
 /**
  * @return mixed
  */
 public function index()
 {
     $sectors = Sector::orderBy('id')->get();
     return $this->respond(['data' => $this->sectorsTransformer->transformCollection($sectors->all())]);
 }
 public function index()
 {
     $events = Event::orderBy('id')->get();
     return $this->respond(['currentEvent' => $this->eventsTransformer->transform(Event::assign()), 'data' => $this->eventsTransformer->transformCollection($events->all())]);
 }
 /**
  * @return mixed
  */
 public function index()
 {
     $locations = Location::orderBy('id')->get();
     return $this->respond(['data' => $this->locationsTransformer->transformCollection($locations->all())]);
 }