Laravel. Debug queries

$builder->toSql();

$builder->getBindings();

$query = vsprintf(str_replace(['?'], ['\'%s\''], $builder->toSql()), $builder->getBindings());

Добавить комментарий