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