Using Spate Translatable and getting error

When i'm editing in filament where have translatable i'm getting this error Call to a member function getOriginal() on int and i don't know why
12 Replies
ericmp
ericmp11mo ago
share the code that produces the error if possible please
chillunica
chillunicaOP11mo ago
Gist
SetLocale is for main page not the administration, In kernel.php Se...
SetLocale is for main page not the administration, In kernel.php SetLocale middleware is in 'web' , Page.php is model, Problem is getting error when editing Page in filament, (Crea...
No description
ericmp
ericmp11mo ago
it happens in the table or form view?
chillunica
chillunicaOP11mo ago
Form view, In edit when try to save
LeandroFerreira
LeandroFerreira11mo ago
Filament
Spatie Translatable by Filament - Filament
Filament support for Spatie's Laravel Translatable package.
chillunica
chillunicaOP11mo ago
Gist
CreatePage.php
GitHub Gist: instantly share code, notes, and snippets.
chillunica
chillunicaOP11mo ago
Database table for pages and page_tag
No description
No description
No description
LeandroFerreira
LeandroFerreira11mo ago
$translatable = [...,'category'] ?
chillunica
chillunicaOP11mo ago
Category is not translatable, and when i add nothing change
LeandroFerreira
LeandroFerreira11mo ago
hum, I don't know. I haven't used this plugin What is the filament version? 3.?.? Maybe you can share a minimal repo on the Github to reproduce this issue
chillunica
chillunicaOP11mo ago
No description
chillunica
chillunicaOP11mo ago
I solve it. Problem was in this line in form 'slug' ->unique(Page::class, 'slug', fn($record) => $record ? $record->id : null) (Solution was disable 'slug' in edit)
Want results from more Discord servers?
Add your server