コード例 #1
0
 public function index()
 {
     #        $limit = Input::get('limit') ? 5;
     $limit = 5;
     $requests = Request::paginate($limit);
     return $this->respond(['data' => $requests, 'paginator' => ['total_count' => $requests->getTotal(), 'current_page' => $requests->getCurrentPage(), 'total_pages' => ceil($lessons->getTotal() / $lessons->getPerPage()), 'limit' => $lessons->getPerPage()]]);
 }