Level 3
Found this shortly after posting... should have looked a little bit longer.
return Auth::user()->some_model()->find($id, ['col_a', 'col_b']);
Apparently the answer lies in adding the columns to the find function.
1 like
Intuitively, I would think that if you would like to retrieve only specific values from a model that is retrieved in Eloquent using the find method, it would look something like this:
return Auth::user()->some_model()->find($id)->get(['col_a', 'col_b']);
What it seems to do, however, is return ALL models in the database with 'col_a', 'col_b' values for each of the models (associated with that user in particular).
How would one only get the model returned by the find($) and then grab those two columns? Worth noting this is in Laravel 5.4
Please or to participate in this conversation.