timacdonald / json-api

A lightweight API resource for Laravel that helps you adhere to the JSON:API standard. Supports sparse fieldsets, compound documents, and more.
585 stars 40 forks source link

Add deeper nested relations for includes #33

Closed marksitko closed 1 year ago

marksitko commented 1 year ago

First things first: Thanks for the great package and your effort!

I ran into some limitations to load deeper nested relations. It only consider relations until the second level, all further relations are filtered out.

This MR change the filter criteria of the forPrefix method in Includes.php

efmjackhardcastle commented 1 year ago

Yes please merge!

timacdonald commented 1 year ago

Thank you so much for the PR.

I've just fixed this in the latest beta release. Thank you so much for submitting a test 😍

https://github.com/timacdonald/json-api/releases/tag/v1.0.0-beta.6