Problem when selecting laravel 5.5 columns

Posted 1 month ago by daniel21gt

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 sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.