-
Notifications
You must be signed in to change notification settings - Fork 151
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
Does not work with Laravel 5.8 (Event::fire) #125
Comments
I think this PR solves the issue. Please merge this asap, since my clients app deppends on this package |
@jhm-ciberman the PR is incomplete. When it's fixed and tests pass for all supported Laravel versions I will merge ASAP |
For my scenario, I created my own "HasFriends" trait and extended yours overwriting the conflictive methods. So, its not that urgent for me at the moment. |
Building on @jhm-ciberman solution I also created a separate trait, here is a what I did: Create Trait
I am overriding the methods and replaced Replace Friendable Trait in User ModelThen instead of using the Friendable trait in the user model, use the new trait you just created in place of the Friendable trait. Note this is just a temporary solution, once the PR fix has been merged, I recommend upgrading your vendor package. |
Hi guys, any news on this issue? Thanks |
Still no news? |
As no PR's are being accepted you can replace all |
So you have to replace it inside the Btw I'm using Laravel 6 and the issue still exists.
|
Me too! |
Hey Friends has the issue been resolved ? |
@jpteruel095 you don't have to edit your vendor file. Just extend the class and override the methods. |
the contributors will must make update with code |
Error: Call to undefined method Illuminate\Events\Dispatcher::fire()
Laravel Version: 5.8
The method ´Event::fire()´ has been deprecated (and removed)
It should be replaced with ´Event::dispatch()´
´´´php
´´´
The text was updated successfully, but these errors were encountered: