Set better default

This commit is contained in:
Lance Pioch 2024-03-31 00:11:56 -04:00
parent e276a07f1b
commit 6e4f3f7191

View File

@ -91,7 +91,7 @@ class CreateNode extends CreateRecord
'http' => 'tabler-lock-open-off',
'https' => 'tabler-lock',
])
->default('http'),
->default(fn () => request()->isSecure() ? 'https' : 'http'),
Forms\Components\TextInput::make('name')
->required()
->columnSpanFull()