Vasyka
16fcdb41ed
fix: phone uniqueness validation and DB constraint for users
...
- Replaced broken ->rules(fn (\$record)) with proper Filament ->unique()
using ignoreRecord:true + modifyRuleUsing scoped to company_id,
applied to both phone and email in MasterResource and UserResource
- Added migration 2026_09_26_000001 to add unique(company_id, phone)
constraint on users table (nulls out duplicate phones before adding,
MySQL allows multiple NULLs in unique index so blank phones are fine)
- Exception catch in Create/EditMaster and Create/EditUser now also
handles UniqueConstraintViolationException on phone
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-09-26 20:18:55 +00:00
..
2026-05-07 09:52:01 +00:00
2026-05-06 17:36:32 +00:00
2026-07-16 07:41:35 +00:00
2026-05-07 04:55:33 +00:00
2026-07-15 05:04:24 +00:00
2026-05-06 17:36:32 +00:00
2026-05-07 09:52:01 +00:00
2026-05-06 22:55:50 +00:00
2026-08-06 05:47:07 +00:00
2026-09-07 12:25:19 +00:00
2026-09-11 05:08:53 +00:00
2026-05-06 17:36:32 +00:00
2026-05-07 04:55:33 +00:00
2026-05-07 15:30:04 +00:00
2026-09-26 20:16:13 +00:00
2026-05-07 04:55:33 +00:00
2026-07-15 05:04:24 +00:00
2026-07-16 11:10:09 +00:00
2026-05-06 22:55:50 +00:00
2026-05-07 09:52:01 +00:00
2026-05-07 09:52:01 +00:00
2026-06-06 07:34:27 +00:00
2026-05-28 05:40:27 +00:00
2026-07-16 20:52:06 +00:00
2026-06-04 22:03:03 +00:00
2026-07-26 10:54:00 +00:00
2026-07-16 07:41:35 +00:00
2026-05-28 06:43:15 +00:00
2026-05-28 06:43:15 +00:00
2026-05-06 21:58:30 +00:00
2026-07-16 07:41:35 +00:00
2026-07-16 20:52:06 +00:00
2026-09-26 20:16:13 +00:00
2026-07-15 05:04:24 +00:00
2026-05-27 19:29:19 +00:00
2026-09-11 04:48:15 +00:00
2026-07-15 06:17:10 +00:00
2026-08-10 19:04:54 +00:00
2026-08-10 19:29:03 +00:00
2026-07-16 07:41:35 +00:00
2026-08-10 19:29:03 +00:00
2026-07-16 06:42:16 +00:00
2026-07-15 06:17:10 +00:00
2026-07-16 07:41:35 +00:00
2026-08-06 05:47:07 +00:00
2026-09-07 12:46:03 +00:00
2026-09-11 04:48:15 +00:00
2026-07-16 06:42:16 +00:00
2026-07-15 06:17:10 +00:00
2026-07-16 20:55:13 +00:00
2026-09-26 20:18:55 +00:00
2026-07-16 07:41:35 +00:00
2026-07-16 07:41:35 +00:00
2026-07-16 20:52:06 +00:00
2026-07-17 06:36:49 +00:00
2026-07-16 07:41:35 +00:00
2026-07-17 07:01:42 +00:00
2026-07-15 06:17:10 +00:00
2026-07-16 20:59:33 +00:00
2026-07-16 07:41:35 +00:00
2026-07-18 11:20:44 +00:00
2026-07-16 06:42:16 +00:00
2026-07-15 05:04:24 +00:00
2026-08-10 19:29:03 +00:00
2026-08-10 19:29:03 +00:00
2026-07-15 06:17:10 +00:00
2026-08-10 19:29:03 +00:00
2026-07-16 20:52:06 +00:00
2026-09-26 20:18:55 +00:00
2026-08-10 19:29:03 +00:00
2026-07-15 06:17:10 +00:00
2026-09-11 04:52:03 +00:00