zofe / rapyd-laravel

deprecated rewritten in rapyd-livewire
MIT License
866 stars 297 forks source link

File Field - Call to undefined method Illuminate\Events\Dispatcher::fire() on Laravel 5.8 #454

Closed Presii closed 4 years ago

Presii commented 5 years ago

Hello @zofe, currently I had an issue when try upload an image, the reason is the method fire from Events, the method isn't more longer support for laravel 5.8, from now you should use the contract method called "dispatch"

At File Field Class on the method upload you should change it Event::fire('rapyd.uploaded.'.$this->name);

for this Event::dispatch('rapyd.uploaded.'.$this->name);

zeman commented 5 years ago

Thanks @Presii, I had to apply this patch as well. Maybe submit a pull request?

zofe commented 4 years ago

seems ok also here