use App\\Order;
public function show(Order $order){
$data = $order->all();
return dd($order->getQueryLog());
Is there any w
You can use my Laravel package which is work perfectly in Larave 6 and 7. (Not sure about laravel 5 or less.)
For use Install the package via composer: by following command
composer require dipenparmar12/laravel-query-log
restart server. after this you will see
storage/logs/db-query.log
file containing your query logs.
For more details visit Laravel-query-log
Thanks