Developer Knowledge Base
Laravel Eloquent
to debug an SQL Query you can use
$rawSql = vsprintf(str_replace(['?'], ['\'%s\''], $query->toSql()), $query->getBindings());
This will hold the rea; SQL call in $rawSQL
to debug an SQL Query you can use
$rawSql = vsprintf(str_replace(['?'], ['\'%s\''], $query->toSql()), $query->getBindings());
This will hold the rea; SQL call in $rawSQL