Skip to content

Add admin companies page and new-domain signup alerts - #496

Merged
shanerbaner82 merged 1 commit into
mainfrom
feature/admin-companies
Sep 4, 2026
Merged

Add admin companies page and new-domain signup alerts#496
shanerbaner82 merged 1 commit into
mainfrom
feature/admin-companies

Conversation

@shanerbaner82

Copy link
Copy Markdown
Contributor

Summary

  • Adds a Filament admin Companies page that aggregates users by email domain (user count, earliest/latest signup), excluding consumer mailbox domains, with a Users action that deep-links into the User resource filtered by domain.
  • On registration (Illuminate\Auth\Events\Registered, fired from CustomerAuthController and other signup paths), emails accounts@nativephp.com when the domain is a new non-consumer company domain (first user only).
  • Consumer denylist lives in config/companies.php (exact domains + prefixes like yahoo., hotmail., gmx., yandex.), wrapped by App\Support\ConsumerEmailDomains.

Test plan

  • php artisan test --compact tests/Unit/ConsumerEmailDomainsTest.php tests/Feature/CompaniesAdminTest.php tests/Feature/NewCompanyDomainRegistrationTest.php (20 passed)
  • Visit /admin/companies as an admin and confirm company domains list with counts; gmail/yahoo-style domains absent
  • Register you@some-new-company.test and confirm accounts@ receives the short “new company domain” mail
  • Register a second user on the same domain and confirm no second “new company” mail
  • Register with @gmail.com and confirm no accounts mail

Infer company domains from user emails (excluding consumer mailboxes),
list them in Filament admin, and email accounts@nativephp.com when the
first user registers on a new company domain.
@shanerbaner82
shanerbaner82 merged commit d603019 into main Sep 4, 2026
3 checks passed
@simonhamp
simonhamp deleted the feature/admin-companies branch September 5, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant