class GateWatcher extends Watcher

Traits

Methods

__construct(array $options = [])

Create a new watcher instance.

from  Watcher
void
register(Application $app)

Register the watcher.

setOptions(array $options)

Set the watcher options.

from  Watcher
array
hideParameters(array $data, array $hidden)

Hide the given parameters.

from  Watcher
array|null
getCallerFromStackTrace(array $forgetLines = [])

Find the first frame in the stack trace outside of Telescope/Hypervel.

array
ignoredPaths()

Get the file paths that should not be used by backtraces.

string|null
ignoredVendorPath()

Choose the frame outside of either Telescope / Hypervel or all packages.

void
handleGateEvaluated(GateEvaluated $event)

Handle the GateEvaluated event.

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.

Parameters

array $options

the configured watcher options

at line 25
void register(Application $app)

Register the watcher.

Parameters

Application $app

Return Value

void

in Watcher at line 31
Watcher setOptions(array $options)

Set the watcher options.

Parameters

array $options

Return Value

Watcher

in Watcher at line 41
protected array hideParameters(array $data, array $hidden)

Hide the given parameters.

Parameters

array $data
array $hidden

Return Value

array

in FetchesStackTrace at line 15
protected array|null getCallerFromStackTrace(array $forgetLines = [])

Find the first frame in the stack trace outside of Telescope/Hypervel.

Parameters

array $forgetLines

Return Value

array|null

in FetchesStackTrace at line 32
protected array ignoredPaths()

Get the file paths that should not be used by backtraces.

Return Value

array

in FetchesStackTrace at line 43
protected string|null ignoredVendorPath()

Choose the frame outside of either Telescope / Hypervel or all packages.

Return Value

string|null

at line 34
void handleGateEvaluated(GateEvaluated $event)

Handle the GateEvaluated event.

Parameters

GateEvaluated $event

Return Value

void

at line 42
mixed recordGateCheck(mixed $user, string $ability, mixed $result, array $arguments)

Record a gate check.

Parameters

mixed $user
string $ability
mixed $result
array $arguments

Return Value

mixed