Im trying to figure out how to get the raw sql query being executed including the binded data in it. Here is what ive got:
\\DB::connection()->enableQueryLog(
Another option is to get the queries from Laravel Debugbar:
$queries = debugbar()->getCollector('queries'); $statements = $queries->collect()['statements']; dd($statements);