thedevdojo / chatter

Chatter is a Simple Laravel Forum Package
https://devdojo.com/forums
MIT License
898 stars 294 forks source link

replace Event::fire() with Event::dispatch() for L5.8 #241

Open MostafaAttia opened 5 years ago

MostafaAttia commented 5 years ago

Can't create a new discussion when using Laravel 5.8:

Symfony\Component\Debug\Exception\FatalThrowableError Call to undefined method Illuminate\Events\Dispatcher::fire().

Illuminate\Events\Dispatcher::fire() changed to dispatch in Laravel 5.8

marcinsdance commented 5 years ago

This fix worked for me on L5.8 - please merge it.

ChafikHadjAbdouRazack commented 5 years ago

please merge it.

shez1983 commented 5 years ago

i am not sure what happened but in every branch this has reverted to fire() ??

Screenshot 2019-07-23 at 14 22 45
igolubic commented 5 years ago

Can this be merged?

mattglover11 commented 4 years ago

Please merge this - i just raised an issue relating to this.

sudheerb9 commented 4 years ago

Yes, This worked for me. Thanks!