I just updated to latest version of AngularFire2 rc5.
It looks like exist() does not exist anymore.
Do you know what's the new way to check if the snapshot exists ?
Related
Im trying to make a custom mount function to mount my own custom components but the example i found is no longer working.
The example i tried is from https://www.npmjs.com/package/#cypress/mount-utils#user-content-example-mount-adapter-web-components
It seems that ROOT_SELECTOR does not match to anything anymore? Is this code perhaps outdated?
Does anyone know how to do something like this on the latest cypress version?
In previous versions of Quarkus Json logging you where able to set quarkus.log.console.json.fields.timestamp.field-name=appTimestamp
In the current version this doesn't work anymore.
So it ended up being a versioning/documentation thing. The Quarkus code wizard was referencing an older version.
It has been tracked here: https://github.com/quarkiverse/quarkus-logging-json/issues/178 and subsequently fixed.
I want to use avatar in my faker users seeding and I try to use https://github.com/ottaviano/faker-gravatar
But I got error trying to install it :
[InvalidArgumentException]
Package ottaviano/faker-gravatar has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version:
- ottaviano/faker-gravatar 0.1.2 requires php ^7.1 which does not match your installed version 8.1.0.
Looks like it does not support php 8...
Are there similar pluging supporting php 8 ?
Or maybe I can tune this plugin to work under php 8?
Thanks in advance!
You could create an issue on the repo and request that the maintainer update the package to support PHP 8. Alternatively you could fork the repo and either maintain that fork yourself, or create a pull request once you've updated the package.
With the above in mind though, something to note is that package is using an abandoned faker library. There is a new fork that is recommended for use but does not have a gravatar provider.
You could write your own provider for the newer faker library or alternatively go down the very simple route of just implementing a statement to generate a gravatar yourself.
'https://www.gravatar.com/avatar/' . md5(strtolower(trim($faker->email()))) . '?d=identicon';
The above will look for an existing gravatar for the provided email address and return that if it finds one, otherwise will return a default gravatar image which in my example is a geometric pattern based on the email hash.
Whilst this solution might not be as flexible as the package in your question, if all you're after is a gravatar and don't care whether it's isometric or a robot (see default images in the API docs for changing the default image generated) then something simple like this might be all you need.
I am using laravel/passport for api authentication Today My old access token isn't working and When i try to generate new access token then i got
Implicit conversion of keys from strings is deprecated. Please use InMemory or LocalFileReference classes. {"exception":"[object] (ErrorException(code: 0): Implicit conversion of keys from strings is deprecated. Please use InMemory or LocalFileReference classes.
Anyone have any solution?
lcobucci/jwt:3.4 has this problem, you can downgrade to 3.3, composer require lcobucci/jwt:3.3 can resolve it.
Or, In config\jwt.php file Change :
'jwt' => Tymon\JWTAuth\Providers\JWT\Lcobucci::class,
to
'jwt' => Tymon\JWTAuth\Providers\JWT\Namshi::class,
As said before, lcobucci/jwt:3.4 is causing this issue, which can be solved by downgrading to 3.3.*.
However, if you have declared something like this:
"lcobucci/jwt": "^3.3.1",
you need to remove the ^ because v3.4 would still be downloaded. Please keep in mind, using a newer version might be better because of bugfixes and other stuff, so make sure to update the respective logic to work with a newer version of the dependecy.
A new version of Laravel Passport, v10.1.0 was released today that fixes this issue.
I am using MongoDB as database so I need to change model of package tzsk\payu as using original is giving me following error
Call to a member function prepare() on null
I tried excluding original model and overriding using composer it doesn't work.
The only way would be if the package offered the option to use a custom model, like Passport is doing.
As far as I can see, there does not seem to be a way to do that. Thus you'd need to fork the package and edit the Model yourself.