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