Forms\Components\Select::make('action')
->options(function (Closure $get) {
return Event::getAvailableActionsForSelect($get('trigger_type'));
})
->reactive(),
Forms\Components\Card::make()
->schema(function (Closure $get) {
$action = $get('action');
if (!$action) return [];
return [
Forms\Components\Select::make('method')
->options([
'get' => 'GET',
'POST' => 'POST',
'PUT' => 'PUT',
'PATCH' => 'PATCH',
'DELETE' => 'DELETE',
])
->default('get')
]
})
Forms\Components\Select::make('action')
->options(function (Closure $get) {
return Event::getAvailableActionsForSelect($get('trigger_type'));
})
->reactive(),
Forms\Components\Card::make()
->schema(function (Closure $get) {
$action = $get('action');
if (!$action) return [];
return [
Forms\Components\Select::make('method')
->options([
'get' => 'GET',
'POST' => 'POST',
'PUT' => 'PUT',
'PATCH' => 'PATCH',
'DELETE' => 'DELETE',
])
->default('get')
]
})