GateWatcher
class GateWatcher extends Watcher
Traits
Methods
void
array|null
getCallerFromStackTrace(array $forgetLines = [])
Find the first frame in the stack trace outside of Telescope/Hypervel.
from
FetchesStackTrace
array
ignoredPaths()
Get the file paths that should not be used by backtraces.
from
FetchesStackTrace
string|null
ignoredVendorPath()
Choose the frame outside of either Telescope / Hypervel or all packages.
from
FetchesStackTrace
void
mixed
recordGateCheck(mixed $user, string $ability, mixed $result, array $arguments)
Record a gate check.
Details
in
Watcher at line 18
__construct(array $options = [])
Create a new watcher instance.
at line 25
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 34
void
handleGateEvaluated(GateEvaluated $event)
Handle the GateEvaluated event.
at line 42
mixed
recordGateCheck(mixed $user, string $ability, mixed $result, array $arguments)
Record a gate check.