Christopher Gammie
Christopher Gammie
Yes so pagination on relationship endpoints is fully supported. It is not supported within included relationships in a compound document, i.e. you cannot paginate `comments` when retrieving a `posts` model,...
No plans to support this at the moment, though see below for a lot more detail on this. In all the production APIs I've built with the JSON:API spec, we've...
So I'd been thinking I could implement this via a class that could be returned from the `paginator()` method on a schema. However, the query builders only call that if...
Yeah would be good to get an example. The major problem with having an endpoint that returns multiple resources is how you handle query parameters - i.e. include paths, sorting,...
Thanks for raising this. I think your solution is a good one for now. There's actually two things going on here: 1. you're only serializing the attribute if the user...
Leaving a note to myself... We currently have `fillUsing()` on the fields to control field hydration. We could perhaps add `fillWhen()` and `fillUnless()` methods that take a callback like `readOnly()`,...
@preliot just checked the docs and you can actually already do conditional visibility of the field via the `hidden()` method. Here's the docs: https://laraveljsonapi.io/docs/2.0/schemas/attributes.html#hiding-fields And here's an example that would...
@preliot sorry, but I'm not following how this wouldn't meet your use case. Not readable by users who are not super users is covered by this (existing functionality): ```php Boolean::make('catchall')->hidden(...
Hi, glad you like the package! So the intention is to have a `laravel-json-api/lumen` package. You'll notice that this Laravel package doesn't have too much code in it - the...
Great! Definitely up for working collaboratively on sorting out a Lumen version, as I've always wanted to add Lumen support.