/**
  * Get all the user's entries for an exercise series.
  * This could be expressed two ways:
  * 1: $series->entries
  * 2: $entry->where('series_id', $series->id)
  * @param Request $request
  * @return array
  */
 public function show($series_id)
 {
     //Fetch the series (singular-the series that was clicked on)
     $series = Series::find($series_id);
     return transform(createCollection($this->exerciseSeriesRepository->getExerciseSeriesHistory($series), new ExerciseEntryTransformer()))['data'];
 }
 /**
  *
  * @return mixed
  */
 public function index()
 {
     return transform(createCollection($this->exerciseSeriesRepository->getExerciseSeries(), new SeriesTransformer()))['data'];
 }