laravel-query-builder
laravel-query-builder copied to clipboard
Reopening #934 for further discussion
Hi, I am facing the same issue and it would be nice to have an alias for nested relations, because I have to query very deeply nested relations sometimes.
I have a solution for this, what if we create a separate AllowedInclude::alias($name, $internalName)
, that will directly zip the two arguments. Instead of building separate path for every nested relation.
If this is okay with you, I can implement this :)
Originally posted by @MrAlpha786 in https://github.com/spatie/laravel-query-builder/issues/934#issuecomment-2360234186