-
-
Notifications
You must be signed in to change notification settings - Fork 312
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 'createConversation' should not be called statically #274
Comments
In
And while you're at it, you probably need this too in
|
Thank you, it works. |
I'm trying to use this on a "boot() ::creating" function inside a model but got the same error. I added both lines in config/app.php and used Without any luck. |
Having the same issue, I tried updating |
+1 |
This works for me in Laravel 9: |
Non-static method 'createConversation' should not be called statically
1- When Changing "use Musonza\Chat\Chat" to "use Chat" i get Class 'Chat' not found
2- When adding the facade Chat to config/app.php i get "Argument 1 passed to Musonza\Chat\Chat::__construct() must be an instance of Musonza\Chat\Services\MessageService, instance of Illuminate\Foundation\Application given, called in /home/tawsse59/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 208"
3- am using L8.X
The text was updated successfully, but these errors were encountered: