diff --git a/app/Filament/Resources/ServerResource/Pages/EditServer.php b/app/Filament/Resources/ServerResource/Pages/EditServer.php index 54fc3f858..735adf657 100644 --- a/app/Filament/Resources/ServerResource/Pages/EditServer.php +++ b/app/Filament/Resources/ServerResource/Pages/EditServer.php @@ -252,13 +252,13 @@ class EditServer extends EditRecord ->schema([ Forms\Components\TextInput::make('variable_value') ->rules([ - fn (ServerVariable $variable): Closure => function (string $attribute, $value, Closure $fail) use ($variable) { + fn (Forms\Get $get): Closure => function (string $attribute, $value, Closure $fail) use ($get) { $validator = Validator::make(['validatorkey' => $value], [ - 'validatorkey' => $variable->variable->rules, + 'validatorkey' => $get('rules'), ]); if ($validator->fails()) { - $message = str($validator->errors()->first())->replace('validatorkey', $variable->variable->name); + $message = str($validator->errors()->first())->replace('validatorkey', $get('name')); $fail($message); } diff --git a/resources/views/vendor/scramble/docs.blade.php b/resources/views/vendor/scramble/docs.blade.php index 98498c2e9..c17501d04 100644 --- a/resources/views/vendor/scramble/docs.blade.php +++ b/resources/views/vendor/scramble/docs.blade.php @@ -1,5 +1,5 @@ - +