src/Traits/Auth/AuthTrait.php
public function getDefaultAuth(): ?Guard
    {
        // By default, the Auth Facade does not return the
        // any actual authentication guard, but rather an
        // instance of \Illuminate\Auth\AuthManager.
        // Therefore, we make sure only to obtain its
        // "default guard", to make sure that its only the guard
        // instance that we obtain.
        $manager = Auth::getFacadeRoot();
        if (isset($manager)) {
            return $manager->guard();
        }
        return $manager;
    }
public function getDefaultAuth(): ?Guard
    {
        // By default, the Auth Facade does not return the
        // any actual authentication guard, but rather an
        // instance of \Illuminate\Auth\AuthManager.
        // Therefore, we make sure only to obtain its
        // "default guard", to make sure that its only the guard
        // instance that we obtain.
        $manager = Auth::getFacadeRoot();
        if (isset($manager)) {
            return $manager->guard();
        }
        return $manager;
    }
public function getDefaultAuth ( ) : ? Guard { // By default, the Auth Facade does not return the // any actual authentication guard, but rather an // instance of \Illuminate\Auth\AuthManager. // Therefore, we make sure only to obtain its // "default guard", to make sure that its only the guard // instance that we obtain. $ manager = Auth :: getFacadeRoot ( ) ; if ( isset ( $ manager ) ) { return $ manager -> guard ( ) ; } return $ manager ; }
Get a default auth value, if any is available

@return Guard|null A default auth value or Null if no default value is available
Get a default auth value if any is available