private static function resource($resource)
    {
        exception_if(($resource != 'session' && $resource != 'cookie'), LogicException::class, 'The resource name of \''.$resource.'\' is not supported by Vinala, only session or cookie');

        return Hash::make(config('auth.'.$resource));

        // For more security, make for every user a resource name
        return Hash::make(config('auth.'.$resource).static::$user->rememberToken);
    }