Laravel unique combination of fields code example Example: eloquent unique combination $table->unique(['taggable_id', 'taggable_type']);