Tjtajid.hashnode.dev·Mar 19, 2022Nullable Uniques on Eloquent ModelWe could setup a composite unique index for two more fields through $table->unique(['company_id', 'email']), to make sure that each email address is used only by user in a company utilizing database unique constraints. The problem arise when we need ...76 readsLaravelAdd a thoughtful commentNo comments yetBe the first to start the conversation.