Anyone out here used the Jenssegers MongoDB in Laravel that have succesfully setup events and listeners with it?
I have an event and listener set up with php artisan, and when I add a Fire to execute an event I get the following error:
BadMethodCallException in Builder.php line 2071:
Call to undefined method Jenssegers\Mongodb\Query\Builder::fire()
This is my entire stack trace:
in Builder.php line 2071
at Builder->__call('fire', array(object(TicketHasBeenBought))) in Builder.php line 1058
at Builder->__call('fire', array(object(TicketHasBeenBought)))
at Builder->fire(object(TicketHasBeenBought))
at call_user_func_array(array(object(Builder), 'fire'), array(object(TicketHasBeenBought))) in Builder.php line 943
at Builder->__call('fire', array(object(TicketHasBeenBought)))
at Builder->fire(object(TicketHasBeenBought))
at call_user_func_array(array(object(Builder), 'fire'), array(object(TicketHasBeenBought))) in Model.php line 3482
at Model->__call('fire', array(object(TicketHasBeenBought))) in Model.php line 537
at Model->__call('fire', array(object(TicketHasBeenBought)))
at Event->fire(object(TicketHasBeenBought))
at call_user_func_array(array(object(Event), 'fire'), array(object(TicketHasBeenBought))) in Model.php line 3496
at Model::__callStatic('fire', array(object(TicketHasBeenBought))) in Orders.php line 227
at Event::fire(object(TicketHasBeenBought)) in Orders.php line 227
at Orders->store(object(Request))
at call_user_func_array(array(object(Orders), 'store'), array(object(Request))) in Controller.php line 256
at Controller->callAction('store', array(object(Request))) in ControllerDispatcher.php line 164
at ControllerDispatcher->call(object(Orders), object(Route), 'store') in ControllerDispatcher.php line 112
at ControllerDispatcher->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in ControllerDispatcher.php line 114
at ControllerDispatcher->callWithinStack(object(Orders), object(Route), object(Request), 'store') in ControllerDispatcher.php line 69
at ControllerDispatcher->dispatch(object(Route), object(Request), 'App\Http\Controllers\Orders\Orders', 'store') in Route.php line 203
at Route->runWithCustomDispatcher(object(Request)) in Route.php line 134
at Route->run(object(Request)) in Router.php line 712
at Router->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Router.php line 714
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 679
at Router->dispatchToRoute(object(Request)) in Router.php line 639
at Router->dispatch(object(Request)) in Kernel.php line 236
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in xdomain.php line 23
at xdomain->handle(object(Request), object(Closure))
at call_user_func_array(array(object(xdomain), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in VerifyCsrfToken.php line 50
at VerifyCsrfToken->handle(object(Request), object(Closure))
at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 62
at StartSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 59
at EncryptCookies->handle(object(Request), object(Closure))
at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 42
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Kernel.php line 122
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 87
at Kernel->handle(object(Request)) in index.php line 54
at require_once('/var/www/vhosts/prepay/httpdocs/public/index.php') in server.php line 21
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/21iz0va
via
IFTTT