Set better default
This commit is contained in:
parent
e276a07f1b
commit
6e4f3f7191
@ -91,7 +91,7 @@ class CreateNode extends CreateRecord
|
|||||||
'http' => 'tabler-lock-open-off',
|
'http' => 'tabler-lock-open-off',
|
||||||
'https' => 'tabler-lock',
|
'https' => 'tabler-lock',
|
||||||
])
|
])
|
||||||
->default('http'),
|
->default(fn () => request()->isSecure() ? 'https' : 'http'),
|
||||||
Forms\Components\TextInput::make('name')
|
Forms\Components\TextInput::make('name')
|
||||||
->required()
|
->required()
|
||||||
->columnSpanFull()
|
->columnSpanFull()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user