I'm using two ManagerResult
and manage
models. I would like to extract all records between joining two DB but it returns a value of a column. The department_id
is in manages
DB. what change should I do in my code?
$manager_result = ManagerResult::join('manages', 'manage_id', 'manages.id')->select('manager_results.*')->where(function ($query) use ($win_seed) {
$query->where('first_seed', $win_seed);
$query->orWhere('second_seed', $win_seed);
})->where('department_id', $manage->department_id)->first();
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2EvXcpQ
via IFTTT
Aucun commentaire:
Enregistrer un commentaire