RicLeP / laravel-storyblok

Make Laravel and Storyblok work together beautifully.
https://ls.sirric.co.uk/
MIT License
58 stars 15 forks source link

fix(Block): added relation resolution to Block's inverseRelation method #56

Closed codyworthen closed 1 month ago

codyworthen commented 2 months ago

I have found that it's useful to have Block.php's inverseRelation method accept an argument for resolving relations, both for "real" storyblok api requests, as well as when dealing with Live Editor JSON that may come from storyblok because storyblok doesn't resolve relations by default.

RicLeP commented 1 month ago

@codyworthen thanks for this, merging now and will release soon. Sorry for the delay - school summer holidays here.

The inverse relations are something I definitely am looking to enhance as they can be a performance hit at times when there are lots of related pages, or chained relations