BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
www
/
app.imagivibe.com
/
vendor
/
pragmarx
/
google2fa-laravel
/
src
/
Support
📤 Upload
📝 New File
📁 New Folder
Close
Editing: Auth.php
<?php namespace PragmaRX\Google2FALaravel\Support; trait Auth { /** * The auth instance. * * @var */ protected $auth; /** * Get or make an auth instance. * * @return \Illuminate\Foundation\Application|mixed */ protected function getAuth() { if (is_null($this->auth)) { $this->auth = app($this->config('auth')); if (!empty($this->config('guard'))) { $this->auth = app($this->config('auth'))->guard($this->config('guard')); } } return $this->auth; } /** * Get the current user. * * @return mixed */ protected function getUser() { return $this->getAuth()->user(); } abstract protected function config($string, $children = []); }
Save
Cancel