public static function configure(Schema $schema): Schema
{
return $schema
->components([
DateTimePicker::make('updated_at')
->default(fn () => now())
->native(false)
->live(),
Actions::make([
Action::make('activateNow')
->label('Activate Now')
->color(Color::Green)
->action(function (Set $set): void {
$set('updated_at', now());
}),
])
]);
}
public static function configure(Schema $schema): Schema
{
return $schema
->components([
DateTimePicker::make('updated_at')
->default(fn () => now())
->native(false)
->live(),
Actions::make([
Action::make('activateNow')
->label('Activate Now')
->color(Color::Green)
->action(function (Set $set): void {
$set('updated_at', now());
}),
])
]);
}