예제 #1
0
 public function includeProjects(Client $client)
 {
     //return $this->collection($client->projects, new MemberTransformer());
     //ou como abaixo
     $transformer = new ProjectTransformer();
     $transformer->setDefaultIncludes([]);
     return $this->collection($client->projects, $transformer);
 }
 public function includeProjects(Client $client)
 {
     $transformer = new ProjectTransformer();
     $transformer->setDefaultIncludes([]);
     return $this->collection($client->projects, $transformer);
 }