PHP stands for Hypertext Preprocessor. It is an open source server-side scripting language which is widely used for web development. It supports many databases like MySQL, Oracle, Sybase, Solid, PostgreSQL, generic ODBC etc.
use Illuminate\Support\Facades\DB; DB::enableQueryLog(); //$results_rebates = \DB::select( DB::raw("SELECT count(id) as count_rebates FROM campaigns as c WHERE ((c.daily_rebates) - (select count(id) from user_rebate_apply where campaigns_id = c.id )) > 0 AND (c.end_date >= NOW())") ); //$query = \DB::getQueryLog();