count() == 1) { Log::debug('Will attach role.'); $repository->attachRole($event->user, 'owner'); } } }