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(
Try to add event listener for query :
Event::listen('illuminate.query', function($query) { var_dump($query); });
or
$results = User::where('id',$id)->toSql(); dd($results)