print last sql query laravel
snippet in php

print last sql query laravel

user9331

DB::enableQueryLog(); // Enable query log

// Your Eloquent query executed by using get()

dd(DB::getQueryLog()); // Show results of log