Methode validate seems not to be tatic
meyer59 opened this issue · 2 comments
meyer59 commented
Hi i've got this error where trying to validate url through UrlSigner::validate("url...")
Non-static method Spatie\UrlSigner\UrlSigner::validate() cannot be called statically, assuming $this from incompatible context
Any help would be greatly appreciated, Thanks
sebastiandedeyne commented
The method should be called on the class' facade, not the actual instance.
use UrlSigner;
// instead of `use Spatie\UrlSigner\UrlSigner`
UrlSigner::validate("url...");