class QueryExecuted (View source)

Properties

string $sql

The SQL query that was executed.

array $bindings

The array of query bindings.

float $time

The number of milliseconds it took to execute the query.

Connection $connection

The database connection instance.

string $connectionName

The database connection name.

Methods

void
__construct(string $sql, array $bindings, float|null $time, Connection $connection)

Create a new event instance.

string
toRawSql()

Get the raw SQL representation of the query with embedded bindings.

Details

void __construct(string $sql, array $bindings, float|null $time, Connection $connection)

Create a new event instance.

Parameters

string $sql
array $bindings
float|null $time
Connection $connection

Return Value

void

string toRawSql()

Get the raw SQL representation of the query with embedded bindings.

Return Value

string