public function resolveAuth( $auth )
	{
		$config = Config::get( 'auth.auths.' . $auth );
		$uses = $config['uses'];

		switch ( $uses )
		{
			case 'database':
			{
				$auth = new DatabaseAuth( $config['table'] );
				break;
			}
			case 'eloquent':
			{
				$auth = new EloquentAuth( $config['usrModel'], $config['grpModel'] );
				break;
			}
			default:
			{
				$auth = UniversalBuilder::resolve( $uses );

				if ( is_null( $auth ) )
					throw new AccountException( "We could not resolve the auth [" . $uses . "]" );

				if ( !is_subclass_of( $auth, AccountAuth::class ) )
					throw new \InvalidArgumentException( "The auth [" . $uses . "] must extend the [" . AccountAuth::class . "] class" );
			}
		}

		return $auth;
	}
public function resolveAuth( $auth )
	{
		$config = Config::get( 'auth.auths.' . $auth );
		$uses = $config['uses'];

		switch ( $uses )
		{
			case 'database':
			{
				$auth = new DatabaseAuth( $config['table'] );
				break;
			}
			case 'eloquent':
			{
				$auth = new EloquentAuth( $config['usrModel'], $config['grpModel'] );
				break;
			}
			default:
			{
				$auth = UniversalBuilder::resolve( $uses );

				if ( is_null( $auth ) )
					throw new AccountException( "We could not resolve the auth [" . $uses . "]" );

				if ( !is_subclass_of( $auth, AccountAuth::class ) )
					throw new \InvalidArgumentException( "The auth [" . $uses . "] must extend the [" . AccountAuth::class . "] class" );
			}
		}

		return $auth;
	}
public function resolveAuth ( $ auth ) { $ config = Config :: get ( 'auth.auths.' . $ auth ) ; $ uses = $ config [ 'uses' ] ; switch ( $ uses ) { case 'database' : { $ auth = new DatabaseAuth ( $ config [ 'table' ] ) ; break ; } case 'eloquent' : { $ auth = new EloquentAuth ( $ config [ 'usrModel' ] , $ config [ 'grpModel' ] ) ; break ; } default : { $ auth = UniversalBuilder :: resolve ( $ uses ) ; if ( is_null ( $ auth ) ) throw new AccountException ( "We could not resolve the auth [" . $ uses . "]" ) ; if ( ! is_subclass_of ( $ auth , AccountAuth :: class ) ) throw new \ InvalidArgumentException ( "The auth [" . $ uses . "] must extend the [" . AccountAuth :: class . "] class" ) ; } } return $ auth ; }
Resolve the implemented Account Auth

@param string $auth
@return AccountAuth
Resolve the implemented Account Auth