tobyzerner / json-api-server

A JSON:API server implementation in PHP.
https://tobyzerner.github.io/json-api-server/
MIT License
63 stars 21 forks source link

feat: support dynamically resolved relationships #100

Closed SychO9 closed 3 months ago

SychO9 commented 5 months ago

Some relationships in Laravel apps are added through dynamic resolvers Model::resolveRelationUsing('relation', fn () => ...). To support those we can use the built-in isRelation check.