Please, note the difference between Collection and Builder coming from an Eloquent model, because that conditions the accesibility of these and other methods.
Extending the framework Illuminate\Database\Eloquent\Builder.
Source:
jsonApiPaginate
Transforms collection of query results of valid JsonApiable resources to a paginated JSON:API collection (JsonApiCollection).
If the model below implements OpenSoutheners\LaravelApiable\Contracts\JsonApiable and uses the trait OpenSoutheners\LaravelApiable\Concerns\HasJsonApi, you could do the following to transform the model to JSON:API valid response:
Render content as a JSON:API serialised response. Check documentation on how to customise these reponses.
Example:
Apiable::response(Film::all())->allowing([
// list of allowed user request params...
])->list();
// or
Apiable::response(Film::all(), [
// list of allowed user request params...
]);
apiable()->response(Film::all())->allowing([
// list of allowed user request params...
])->list();
// or
apiable()->response(Film::all(), [
// list of allowed user request params...
]);