$signatures = $signatures_all->where('staff_id', '=', 365)->orWhere('staff_id', '=', '294')->pluck('doc_id')->toArray(); in $signatures i pluck document's id to array and call it here $documents = $documents_all->whereIn('id', $signatures)->where('status', '!=', '2'); when this 2 users get same document I get only one record; but I want 2 same documents for 2 users separatly
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2M9zd0p
via IFTTT
Aucun commentaire:
Enregistrer un commentaire