Skip to content

Commit 3d709cb

Browse files
feat:[LAR-141] fix edit tage name on admin panel (#251)
1 parent a62a9d5 commit 3d709cb

File tree

3 files changed

+60
-60
lines changed

3 files changed

+60
-60
lines changed

app/Filament/Resources/TagResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static function form(Form $form): Form
3232
Forms\Components\TextInput::make('name')
3333
->live(onBlur: true)
3434
->required()
35-
->unique()
35+
->unique(ignoreRecord: true)
3636
->afterStateUpdated(fn ($state, Forms\Set $set) => $set('slug', Str::slug($state)))
3737
->columnSpanFull(),
3838
Forms\Components\TextInput::make('slug')

composer.lock

Lines changed: 58 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/css/filament/filament/app.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)