/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $answers = Answer::all(); return $this->respond(['data' => $this->AnswerTransformer->transformCollection($answers->toArray())]); }