protected function preventAccessForDemoUsers() { if (config('app.env') === 'demo') { $this->showPermissionError(); } }