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