src/Watchers/GateWatcher.php
public function recordGateCheck(?Authenticatable $user, $ability, $result, $arguments)
    {
        if (! Telescope::isRecording() || $this->shouldIgnore($ability)) {
            return;
        }

        $caller = $this->getCallerFromStackTrace();

        Telescope::recordGate(IncomingEntry::make([
            'ability' => $ability,
            'result' => $result ? 'allowed' : 'denied',
            'arguments' => $this->formatArguments($arguments),
            'file' => $caller['file'],
            'line' => $caller['line'],
        ]));

        return $result;
    }
public function recordGateCheck(?Authenticatable $user, $ability, $result, $arguments)
    {
        if (! Telescope::isRecording() || $this->shouldIgnore($ability)) {
            return;
        }

        $caller = $this->getCallerFromStackTrace();

        Telescope::recordGate(IncomingEntry::make([
            'ability' => $ability,
            'result' => $result ? 'allowed' : 'denied',
            'arguments' => $this->formatArguments($arguments),
            'file' => $caller['file'],
            'line' => $caller['line'],
        ]));

        return $result;
    }
public function recordGateCheck ( ? Authenticatable $ user , $ ability , $ result , $ arguments ) { if ( ! Telescope :: isRecording ( ) || $ this -> shouldIgnore ( $ ability ) ) { return ; } $ caller = $ this -> getCallerFromStackTrace ( ) ; Telescope :: recordGate ( IncomingEntry :: make ( [ 'ability' => $ ability , 'result' => $ result ? 'allowed' : 'denied' , 'arguments' => $ this -> formatArguments ( $ arguments ) , 'file' => $ caller [ 'file' ] , 'line' => $ caller [ 'line' ] , ] ) ) ; return $ result ; }
Record a gate check.

@param  \Illuminate\Contracts\Auth\Authenticatable|null  $user
@param  string  $ability
@param  bool  $result
@param  array  $arguments
@return bool
Record a gate check .