QueryWatcher
class QueryWatcher extends Watcher
Traits
Methods
Find the first frame in the stack trace outside of Telescope/Hypervel.
Get the file paths that should not be used by backtraces.
Choose the frame outside of either Telescope / Hypervel or all packages.
Details
in
Watcher at line 18
__construct(array $options = [])
Create a new watcher instance.
at line 22
void
register(Application $app)
Register the watcher.
in
Watcher at line 41
protected array
hideParameters(array $data, array $hidden)
Hide the given parameters.
in
FetchesStackTrace at line 15
protected array|null
getCallerFromStackTrace(array $forgetLines = [])
Find the first frame in the stack trace outside of Telescope/Hypervel.
in
FetchesStackTrace at line 32
protected array
ignoredPaths()
Get the file paths that should not be used by backtraces.
in
FetchesStackTrace at line 43
protected string|null
ignoredVendorPath()
Choose the frame outside of either Telescope / Hypervel or all packages.
at line 31
void
recordQuery(QueryExecuted $event)
Record a query was executed.
at line 57
protected array
tags(QueryExecuted $event)
Get the tags for the query.
at line 65
string
familyHash(QueryExecuted $event)
Calculate the family look-up hash for the query event.
at line 73
protected array
formatBindings(QueryExecuted $event)
Format the given bindings to strings.
at line 81
string
replaceBindings(QueryExecuted $event)
Replace the placeholders with the actual bindings.
at line 113
protected string
quoteStringBinding(QueryExecuted $event, mixed $binding)
Quote a non-numeric binding.