How can i get mysql query of a laravel query
mysql
laravel
Convert:
App\\User::where(\'balance\',\'>\',0)->where(...)-
To get mysql query in laravel you need to log your query as
DB::enableQueryLog(); App\User::where('balance','>',0)->where(...)->get(); print_r(DB::getQueryLog());
Check reference : https://laravel.com/docs/5.0/database#query-logging