Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

Something like this might help

$results = DB::select( DB::raw("SELECT login,name FROM  mt4_users,users_agents WHERE mt4_users.login = users_agents.mt4_users and agents_idagent=:variable), array(
   'variable' => 1));

Followed this example

You can find more info about laravel and raw querries in the official documentation

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.