Fix update egg from url (#492)

This commit is contained in:
Boy132
2024-07-17 13:00:54 +02:00
committed by GitHub
parent 833ae30e59
commit 8a3d67ada0

View File

@@ -249,9 +249,9 @@ class EditEgg extends EditRecord
Tab::make('From URL')
->icon('tabler-world-upload')
->schema([
TextInput::make('update_url')
TextInput::make('url')
->label('URL')
->formatStateUsing(fn (Egg $egg): string => $egg->update_url)
->default(fn (Egg $egg): string => $egg->update_url)
->hint('Link to the egg file (eg. minecraft.json)')
->url(),
]),