If you're using the toArray method, you might want to consider correcting this in your models instead - by defining the "hidden" parameter. See the following link, under the heading Hiding Attributes From Array Or JSON Conversion.
http://laravel.com/docs/4.2/eloquent#converting-to-arrays-or-json
Thank you AndrewBNZ,
with using the "hidden" paramter, the fields will be missed in all requests.
I want to get all fields by default - and then select the needed field from query to query (not within the query but within the several functions).
Case has been solved in https://laracasts.com/discuss/channels/general-discussion/select-fields-in-complex-with-queries by other user.
Solution: There has to be a foreign key in the selection array
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community