You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public function subscribe(Dispatcher $dispatcher): void
{
$dispatcher->listen('Illuminate\Auth\Events\Login', __CLASS__ . '@onUserAuthenticated');
}
The cart is synced and the items in the database is also synced... But when I use a closure, this doesnt seem to work anymore...
public function subscribe(Dispatcher $dispatcher): void
{
$dispatcher->listen('Illuminate\Auth\Events\Login', function ($event) {
$this->onUserAuthenticated();
});
}
Any idea why this is not working?
The text was updated successfully, but these errors were encountered:
I was busy with syncing carts with logged in users just like the demo code... I noticed something something weird.
https://github.com/cartalyst/demo-cart/blob/6.x/app/Listeners/UserEventListener.php#L60
this code works
The cart is synced and the items in the database is also synced... But when I use a closure, this doesnt seem to work anymore...
Any idea why this is not working?
The text was updated successfully, but these errors were encountered: