I'm looking to query a model, where two users can access it based on whose signed in.
So I have a owner, and a responder whose id's are released to a survey, and there can be maney surveys.
Can something like this work
$survey = App\Survey::where('owner_id, Auth::user->id)->orWhere(responder _id, 'Auth::user->id);
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire