-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non-static method #18
Comments
Did you try adding this in your config/app.php?
Then you can just use the method by |
Yes, I have those in my app.php file. This is the code I'm trying to run:
Then calling it in a blade file:
|
Try removing |
I did, but it's looking for the class in my extension. For example:
|
You need to use the facade use \Thujohn\Analytics\AnalyticsFacade as Analytics; or just use \Analytics; |
That works. Thanks! |
I'm trying to use the example in the README but this is what returns:
Non-static method Thujohn\Analytics\Analytics::getSiteIdByUrl() should not be called statically, assuming $this from incompatible context
The text was updated successfully, but these errors were encountered: