Level 75
Feb 14, 2019
1
Level 1
Problem when selecting laravel 5.5 columns
How about, I have the following query, in eloquen.
$conteoconsejales = usuarios::join('advice', 'usuarios.conse_id', '=' , 'advice.ida')->where('conse_id',$valorconse)->where('asignacion', '<>', '')->select('user_id', 'usuario_ad')->get();
The problem is that I have a column from another table, called advice, but I want to include it within the -> select (), but I do not know if this can be done?
Please or to participate in this conversation.