/** * Display a listing of the resource. * * @return array */ public function index() { $limit = (int) Input::get('limit', 25); $page = (int) Input::get('page', 1); return Training::paginate($limit, ['*'], 'page', $page); }