src/Factory.php
protected function getGate()
    {
        if ($this->gate) {
            return $this->gate;
        }

        return new Gate($this->getContainer(), function () {
            return $this->user;
        });
    }
protected function getGate()
    {
        if ($this->gate) {
            return $this->gate;
        }

        return new Gate($this->getContainer(), function () {
            return $this->user;
        });
    }
protected function getGate ( ) { if ( $ this -> gate ) { return $ this -> gate ; } return new Gate ( $ this -> getContainer ( ) , function ( ) { return $ this -> user ; } ) ; }
Get an instance of the gate.

@return \Illuminate\Contracts\Auth\Access\Gate
Get an instance of the gate .