F
Filament4mo ago
Darui

Spatie Translatable inheriting the relation manager's active locale from the resource page 404 error

Hi everyone, I'm very new to Laravel and Filament and I'm loving it already. I'm trying out Spatie Translatable and trying to inherit the active locale from the owner resource. It is working following this documentation https://filamentphp.com/plugins/filament-spatie-translatable#inheriting-the-relation-managers-active-locale-from-the-resource-page. But when I delete the owner resource record on the edit page, after clicking confirm, it displays a 404 page in a modal. Here's the snippet from the relation manager: use Translatable; #[Reactive] public ?string $activeLocale = null;
protected static string $relationship = 'blocks'; public function form(Form $form): Form { return BlockResource::form($form); } There is no error or log. Just a 404 in a modal (see attached). Can anyone please explain what's happening and how I can resolve this issue? Thanks!
Filament
Spatie Translatable by Filament - Filament
Filament support for Spatie's Laravel Translatable package.
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server