Add Random Free test as first test of page 1. Only those tests which the user has not yet subscribed. .
Paginated set of AvailableTestResource
'created_at' => $this->created_at,
Generated paginator links.
Base path for paginator generated URLs.
Number of items shown per page.
Number of the last item in the slice.
Total number of items being paginated.
curl --request GET \--url http://127.0.0.1:8000/api/v1/tests/available \--header 'Accept: application/json' \--header 'Authorization: Bearer 123'
1{2"data": [3{4"id": 0,5"testname": "string",6"testby": "string",7"testprice": 0,8"testimageurl": "string",9"testquestions": 0,10"testtime": 0,11"subjectcode": 0,12"chaptercode": 0,13"test_startTimestamp": 0,14"randomorspecial": 0,15"correct_marks": 0,16"incorrect_marks": 017}18],19"links": {20"first": "string",21"last": "string",22"prev": "string",23"next": "string"24},25"meta": {26"current_page": 1,27"from": 1,28"last_page": 1,29"links": [30{31"url": "string",32"label": "string",33"active": true34}35],36"path": "string",37"per_page": 0,38"to": 1,39"total": 040}41}