© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
GHOST-117

Unique with soft delete

public function up(): void
{
Schema::create('brands', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->mediumText('description')->nullable();
$table->softDeletes(); // This line adds the soft delete functionality
$table->timestamps();
$table->unique('name','deleted_at');
});
}

i am trying to have unique name but i also have soft delete
is there is any way
???
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

unique validation on soft-deleted records
FilamentFFilament / ❓┊help
3y ago
Repeater Soft-Delete
FilamentFFilament / ❓┊help
2y ago
Restoring repeater soft delete
FilamentFFilament / ❓┊help
2y ago
restore soft deletes
FilamentFFilament / ❓┊help
3y ago