class ReplicateToolAction extends ReplicateAction
{
protected function setUp(): void
{
parent::setUp();
$this->schema(fn (Schema $schema) => ToolForm::configure($schema)); // the simple solution
$this->excludeAttributes([
'inventory_number',
'serial_number',
'last_maintenance_at',
]);
}
}
class ReplicateToolAction extends ReplicateAction
{
protected function setUp(): void
{
parent::setUp();
$this->schema(fn (Schema $schema) => ToolForm::configure($schema)); // the simple solution
$this->excludeAttributes([
'inventory_number',
'serial_number',
'last_maintenance_at',
]);
}
}