protected function registerAtGate() { $gate = $this->app->make(Gate::class); $clipboard = $this->app->make(Clipboard::class); $clipboard->registerAt($gate); }