Magento 2 Eloquent Laravel SQL log
Dec 14, 2021
Magento 2 Eloquent Laravel showsql is a package to output Model SQL queries:
Product::whereHas('sku')->showSql()->get();
When you call the showSql()
method, it sends the generated SQL query to the browser console.
This package is helpful when you want to target specific query logs without logging all SQL queries on a given request. You can learn more about this package on GitHub source.
This package works with Laragento Magento library: