Exemplo n.º 1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $limit = Input::get('limit') ?: 5;
     $makers = Maker::paginate($limit);
     // dd(get_class_methods($lessons));
     $data = ['data' => $this->makerTransformer->transformCollection($makers->all())];
     return $this->respondWithPagination($makers, $data);
 }