Eager Loading Specific Columns #977
Unanswered
mennakhalilselim
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In laravel I can eager load specific relationship columns like this:
$books = Book::with('author:id,name,book_id')->get();
I want to do the same in allowedIncludes() like this:
->allowedIncludes(['author:id,name,book_id'])
how can I achieve this functionality?
Beta Was this translation helpful? Give feedback.
All reactions