This is supposed to be sent, but isn’t because it’s disabled, even though it’s dehydrated

This commit is contained in:
Lance Pioch 2024-03-31 00:14:15 -04:00
parent eda3959748
commit dc794c64ce

View File

@ -69,15 +69,15 @@ class CreateNode extends CreateRecord
return ''; return '';
}) })
->disabled(function (Forms\Get $get, Forms\Set $set) { // ->disabled(function (Forms\Get $get, Forms\Set $set) {
if (request()->isSecure()) { // if (request()->isSecure()) {
$set('scheme', 'https'); // $set('scheme', 'https');
//
return true; // return true;
} // }
//
return false; // return false;
}) // })
->options([ ->options([
'http' => 'HTTP', 'http' => 'HTTP',
'https' => 'HTTPS (SSL)', 'https' => 'HTTPS (SSL)',