Skip to content

Commit

Permalink
Fix: Rule unique slug url use morph class
Browse files Browse the repository at this point in the history
  • Loading branch information
lguichard committed Oct 8, 2024
1 parent 3d66fb2 commit d8280ce
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 d8280ce

Please sign in to comment.