class Illuminate / Database / Events / QueryExecuted
You are viewing an older version of the documentation. For the latest, please visit master documentation.

QueryExecuted

Properties

public

$sql string

The SQL query that was executed.

Default: null
public

$bindings array

The array of query bindings.

Default: null
public

$time float

The number of milliseconds it took to execute the query.

Default: null
public

$connection Connection

The database connection instance.

Default: null
public

$connectionName string

The database connection name.

Default: null

Methods

public

__construct ( $sql , $bindings , $time , $connection ) : void

Create a new event instance.

Parameters

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