File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ class MenuItem extends Model
40
40
'use_model_title ' => 'boolean ' ,
41
41
];
42
42
43
+ public $ translatable = ['label ' ];
44
+
43
45
public function getTable ()
44
46
{
45
47
return FilamentFlexibleContentBlockPages::config ()->getMenuItemsTable ();
@@ -52,7 +54,7 @@ public function menu(): BelongsTo
52
54
53
55
public function linkable (): MorphTo
54
56
{
55
- return $ this ->morphTo ();
57
+ return $ this ->morphTo (__FUNCTION__ , ' linkable_type ' , ' linkable_id ' );
56
58
}
57
59
58
60
public function getUrl (?string $ locale = null ): ?string
@@ -104,9 +106,4 @@ public function getMorphClass()
104
106
{
105
107
return 'filament-flexible-content-block-pages::menu-item ' ;
106
108
}
107
-
108
- protected function getTranslatableAttributes (): array
109
- {
110
- return ['label ' ];
111
- }
112
109
}
You can’t perform that action at this time.
0 commit comments