zofe / rapyd-laravel

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

file upload fix for laravel 5.8 #459

Closed ignassta closed 4 years ago

ignassta commented 5 years ago

Changed "\Event::fire('rapyd.uploaded.'.$this->name);" to "\Event::dispatch('rapyd.uploaded.'.$this->name);" because fire() method has been removed in laravel 5.8. and dispatch() method should be used.

Source: https://laravel.com/docs/5.8/upgrade

This update fixes error "Call to undefined method Illuminate\Events\Dispatcher::fire()" when trying to upload file in rapyd edit.