public function index() { $skippers = User::with(['boats'])->has('boats')->get(); return $this->respond(['data' => $this->skipperTransformer->transformCollection($skippers->all())]); }
public function index() { $boats = Boat::orderBy('id')->get(); return $this->respond(['data' => $this->boatTransformer->transformCollection($boats->all())]); }
/** * @return mixed */ public function index() { $categories = Category::orderBy('id')->get(); return $this->respond(['data' => $this->categoriesTransformer->transformCollection($categories->all())]); }
public function index() { // $species = Species::all(); $species = Species::with('weights', 'type')->get(); return $this->respond(['data' => $this->speciesTransformer->transformCollection($species->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())]); }