Index build failed - Laravel

You are trying to create a unique index on a field which contains duplicated values through the collection.

You need to identify which documents have the duplicate field value and change them, or create an index which is not unique.