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