Created
September 9, 2016 12:03
-
-
Save dam1r89/8f0d71d3a7c62a26720f0f904fdf48a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dq($query){ | |
$sql = $query->toSql(); | |
foreach($query->getBindings() as $key => $binding){ | |
$sql = preg_replace('/\?/', "'$binding'", $sql, 1); | |
} | |
dd($sql); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment