diff --git a/composer.json b/composer.json index 34c574f..ea3de59 100644 --- a/composer.json +++ b/composer.json @@ -73,5 +73,6 @@ "phpstan/extension-installer": "^1.4", "phpstan/phpstan-deprecation-rules": "^1.2", "phpstan/phpstan-phpunit": "^1.4" - } + }, + "version": "v2.0.0" } diff --git a/src/Filament/Resources/TranslationResource/Actions/Contracts/CanRegister.php b/src/Filament/Resources/TranslationResource/Actions/Contracts/CanRegister.php index b5b4ac7..236fbec 100644 --- a/src/Filament/Resources/TranslationResource/Actions/Contracts/CanRegister.php +++ b/src/Filament/Resources/TranslationResource/Actions/Contracts/CanRegister.php @@ -32,7 +32,7 @@ public function getActions(): array ->model(method_exists(self::$page, 'getModel') ? self::$page->getModel() : null) ->modelLabel(method_exists(self::$page, 'getModelLabel') ? get_model_label(self::$page->getModel()) : null) ->form(fn (Form $form) => app(self::$page->getResource())::form($form)) - ->url(fn () => isset(app(self::$page->getResource())::getPages()[$action->getName()]) ? app(app(self::$page->getResource())::getPages()[$action->getName()]->getPage())->getUrl() : null); + ->url(fn () => isset(app(self::$page->getResource())::getPages()[$action->getName()]) ? app(app(self::$page->getResource())::getPages()[$action->getName()]->getPage())->getUrl(['record' => method_exists(self::$page, 'getRecord') ? self::$page->getRecord() : null]) : null); } return $action;