src/Guard.php
public function slot($slot = null)
    {
        if (is_null($slot)) {
            return $this->slot;
        }

        if (! in_array($slot, ['before', 'after'])) {
            throw new InvalidArgumentException(
                "{$slot} is an invalid gate slot"
            );
        }

        $this->slot = $slot;

        return $this;
    }
public function slot($slot = null)
    {
        if (is_null($slot)) {
            return $this->slot;
        }

        if (! in_array($slot, ['before', 'after'])) {
            throw new InvalidArgumentException(
                "{$slot} is an invalid gate slot"
            );
        }

        $this->slot = $slot;

        return $this;
    }
public function slot ( $ slot = null ) { if ( is_null ( $ slot ) ) { return $ this -> slot ; } if ( ! in_array ( $ slot , [ 'before' , 'after' ] ) ) { throw new InvalidArgumentException ( "{$slot} is an invalid gate slot" ) ; } $ this -> slot = $ slot ; return $ this ; }
Set or get which slot to run the clipboard's checks.

@param  string|null  $slot
@return $this|string
Set or get which slot to run the clipboard s checks .