/** * Display a listing of the resource. * * @return Response */ public function index() { $wordcards = WordCard::paginate(); return $wordcards; return $this->respond($this->wordTransformer->transformWords($wordcards->toArray())); }