/** * Handle the event. * * @param UserWasCreated $event * @return void */ public function handle(UserWasCreated $event) { /** * Give the user an empty bag */ $this->repository->attach([], $event->user->id); }