Skip to content

Commit

Permalink
Fix Rule unique slug url use morph class (#1983)
Browse files Browse the repository at this point in the history
  • Loading branch information
lguichard authored Nov 5, 2024
1 parent d01de0d commit e97122e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function form(Form $form): Form
ignoreRecord: true,
modifyRuleUsing: function (Unique $rule, callable $get) {
return $rule
->where('element_type', static::$model)
->where('element_type', (new static::$model)->getMorphClass())
->where('language_id', $get('language_id'));
}
)
Expand Down

0 comments on commit e97122e

Please sign in to comment.