laravel-query-builder icon indicating copy to clipboard operation
laravel-query-builder copied to clipboard

Reopening #934 for further discussion

Open MrAlpha786 opened this issue 5 months ago • 1 comments

          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

MrAlpha786 avatar Sep 19 '24 07:09 MrAlpha786