Let's say I have an agency and a user and I want to match the currently logged in user against agencies on age. I might write something like this:
$agematch = Agency::where('Age', 'like', Auth::user()->Age)->get();
But let's say most information like Work_Preferences is stored in pivot tables. Both users and agencies access the same Work_Preferences information, however they each have a unique pivot table set up to link to Work_Preferences. How might I perform a match query on that?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2fT2lfh
via IFTTT
Aucun commentaire:
Enregistrer un commentaire