Since the default value for items per page is 10, this value has to be returned when creating a new Page object, instead of null.
This addresses the bug that the (Laravel 5 based) API will return 15 items in the 'data' array (instead of the desired 10), but supply 10 as the meta-size. When supplying the 10 via GET, e.g. "/employees?page[size]=10", everything is correct. Otherwise, the above described will create a response like that:
Since the default value for items per page is 10, this value has to be returned when creating a new Page object, instead of null.
This addresses the bug that the (Laravel 5 based) API will return 15 items in the 'data' array (instead of the desired 10), but supply 10 as the meta-size. When supplying the 10 via GET, e.g. "/employees?page[size]=10", everything is correct. Otherwise, the above described will create a response like that: