How can i get mysql query of a laravel query
mysql
laravel
Convert:
App\\User::where(\'balance\',\'>\',0)->where(...)-
Try this:
$results = App\User::where('balance','>',0)->where(...)->toSql(); dd($results);
Note: get() has been replaced with toSql() to display the raw SQL query.