I'm not very familiar with Livewire. I noticed that there's no dispatch method available in my Livewire setup. I even checked the LivewireManager class in the vendor directory, but couldn't find any dispatch method there. Any help would be appreciated.
undefined function dispatch() in
Livewire:dispatch()
@Snapey Hello Thank You For Replying. I exactly cannot show you the code. The issue is i have called Livewire::dispatch() and it says there is no method such as dispatch. I went to the vendor in src and looked into LivewireManager class and there was no such method named dispatch also. I reinstalled the livewire and it is 3.6 version yet the issue persists. The log also says local.ERROR: Call to undefined method Livewire\LivewireManager::dispatch() {"exception":"[object] (Error(code: 0): Call to undefined method Livewire\LivewireManager::dispatch()
I was using the dispatch like this
Livewire::dispatch(['event-name',['url' = > $url, 'file' => $file]);
I used this method in Laravel Job