Method Illuminate\Events\Dispatcher::fire does not exist

Updated at 06-Sep-2021, By samar

Method IlluminateEventsDispatcher::fire does not exist

Through the use of the programming language, we will work together to solve the "Method IlluminateEventsDispatcher::fire does not exist" puzzle in this lesson.

Error Method Illuminate\Events\Dispatcher::fire does not exist found in laravel when you try to call Event::fire() method instead of Event::dispatch(). Because the Event::fire() method of Illuminate/Events/Dispatcher class has been removed.
  • Change Event::fire() to Event::dispatch()

    Use Event::dispatch();  
    instead of  Event::fire();
    

Back to code snippet queries related laravel