laravel-json-api icon indicating copy to clipboard operation
laravel-json-api copied to clipboard

JSON API (jsonapi.org) package for Laravel applications.

Results 28 laravel-json-api issues
Sort by recently updated
recently updated
newest added

At the moment an Eloquent relation (e.g. has-many) uses the same defaults as when querying a resource index. For example, if a `posts` resource has default paging parameters, these will...

feature

When I don't specify sorting in the request, but have defaultSorting set in the Adapter, the response does not contain the meta.sorting object. Therefor my js table does not know...

duplicate
enhancement

Hello guys! In my API I do need to make some joins in the query to apply my filter logic. However if my joining table has the same field name...

enhancement

Hi! This POST-request create row in many-to-many table: ``` { "data": { "type": "legal-entity-warehouse-days", "attributes": { }, "relationships": { "legal-entity-warehouse": { "data": { "id": "8", "type": "legal-entity-warehouses" } }, "warehouse-day":...

Changes required to upgrade to Laravel 11. As Laravel 11 drops PHP 8.1, we'll do the same.

if I do this the tests pass ` $id = $response ->assertCreatedWithServerId(null, $data) ->id();` but if I change the tests as in the documentation the tests do not work `...

needs reproduction

https://github.com/cloudcreativity/laravel-json-api/blob/86e9dbad5df8f077f75f7803fa70e6800d1f113e/src/Broadcasting/BroadcastsData.php#L58 _BroadcastsData::serializeData()_ appears to call _Encoder::serializeData()_. _Encoder::serializeData()_ does not appear to take a second parameter. And thus no matter if includes are specified or not, the data going down the...

I want to add global top-level meta data. https://laraveljsonapi.io/docs/3.0/responses/#meta-response This document doesn't tell you enough in terms of how you can add top-level meta data. I achieved this by using...