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