Skip to content

Instantly share code, notes, and snippets.

View brkfun's full-sized avatar
🚀
DevSecOps

Burak Faruk ŞAHİN brkfun

🚀
DevSecOps
View GitHub Profile
@brkfun
brkfun / helper.php
Last active September 19, 2019 08:45
Laravel get real query helper function
# Indeed you have to send builder to get bindings included to your query to make you to see real query goes to your database.
# Not much powerful it is just for seeing a singular query which is not working well that if you think
# write this function down to your helper(s).php
if(!function_exists('getRealQuery')){
function getRealQuery(\Illuminate\Database\Eloquent\Builder $query, $dumpIt = false)
{
$params = [];