/**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     return Specialty::all();
 }
 public function index()
 {
     $specialties = \App\Specialty::all();
     return $this->respond(['data' => $this->specialtyTransformer->transformCollection($specialties->all())]);
 }
 public function index()
 {
     $specialties = Specialty::all();
     return $this->response->withCollection($specialties, new SpecialtyTransformer());
 }