Skip to content

Commit ba626a6

Browse files
committed
add some defaults
1 parent 13b8de3 commit ba626a6

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

billing/src/Console/Commands/CheckOrdersCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function handle(): int
2121
return 0;
2222
}
2323

24-
$bar = $this->output->createProgressBar(count($orders));
24+
$bar = $this->output->createProgressBar($orders->count());
2525
foreach ($orders as $order) {
2626
$bar->clear();
2727

billing/src/Filament/Admin/Resources/Customers/CustomerResource.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public static function form(Schema $schema): Schema
5050
->required()
5151
->suffix(config('billing.currency'))
5252
->numeric()
53-
->minValue(0),
53+
->minValue(0)
54+
->default(0),
5455
TextInput::make('first_name')
5556
->required(),
5657
TextInput::make('last_name')

billing/src/Filament/Admin/Resources/Products/ProductResource.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@ public static function form(Schema $schema): Schema
8787
->columnSpanFull()
8888
->columns(2)
8989
->schema([
90-
TagsInput::make('ports'),
90+
TagsInput::make('ports')
91+
->placeholder('New port or port range'),
9192
TagsInput::make('tags')
93+
->placeholder('New tag for deployment')
9294
->default(array_filter(explode(',', config('billing.deployment_tags', '')))),
9395
]),
9496
Fieldset::make('Limits')
@@ -99,17 +101,20 @@ public static function form(Schema $schema): Schema
99101
->prefixIcon('tabler-network')
100102
->required()
101103
->numeric()
102-
->minValue(0),
104+
->minValue(0)
105+
->default(0),
103106
TextInput::make('database_limit')
104107
->prefixIcon('tabler-database')
105108
->required()
106109
->numeric()
107-
->minValue(0),
110+
->minValue(0)
111+
->default(0),
108112
TextInput::make('backup_limit')
109113
->prefixIcon('tabler-copy-check')
110114
->required()
111115
->numeric()
112-
->minValue(0),
116+
->minValue(0)
117+
->default(0),
113118
]),
114119
]);
115120
}

0 commit comments

Comments
 (0)