I'm trying to generate a query that returns a list of flight requests along with the user who requested them but I'm trying to omit the email attribute from the user, I know I can add email to the hidden array in the User model but I only want to hide it from this one query so it would not make sense to have to add the makeVisible method to every other query I'm running on my app.
The query I've got is this:
FlightRequest::get()
->where('public', 1)
->whereNull('acceptee_id')
->sortBy('id')
->load('aircraft', 'requestee');
I've tried adding ->makeHidden('requestee.email') to the end of the query but that doesnt work