QueryEvent
final class QueryEvent implements AppEvent (View source)
Traits
Properties
| mixed | $sql | The query data |
|
| array | $bindings | The query bindings |
Methods
Dispatch the event with the given arguments if the given truth test passes.
Dispatch the event with the given arguments unless the given truth test passes.
QueryEvent constructor.
No description
Prevent setting properties dynamically
Details
static mixed
dispatch()
Dispatch the event with the given arguments.
static void
dispatchIf(bool $boolean, mixed ...$arguments)
Dispatch the event with the given arguments if the given truth test passes.
static void
dispatchUnless(bool $boolean, mixed ...$arguments)
Dispatch the event with the given arguments unless the given truth test passes.
array
__serialize()
Prepare the instance values for serialization.
protected mixed
getPropertyValue(ReflectionProperty $property)
Get the property value for the given property.
void
__unserialize(array $values)
Restore the model after serialization.
__construct(string $sql, array $bindings = [])
QueryEvent constructor.
string
getName()
No description
__set(string $name, mixed $value)
Prevent setting properties dynamically