/** * Include shift coworkers * * @param Shift $shift * @return \League\Fractal\Resource\Collection */ public function includeCoworkers(Shift $shift) { $coworkers = $shift->getCoworkers(); return $this->collection($coworkers, new UserTransformer()); }