Skip to content

Commit 5d0747f

Browse files
committed
fix: casting issue in testing
1 parent 4befc02 commit 5d0747f

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

app/Models/Deal.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ protected function casts(): array
2020
{
2121
return [
2222
'status' => DealStatus::class,
23+
'estimated_revenue' => 'float',
24+
'actual_revenue' => 'float',
2325
];
2426
}
2527

app/Models/Lead.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ protected function casts(): array
1919
{
2020
return [
2121
'status' => LeadStatus::class,
22+
'estimated_revenue' => 'float'
2223
];
2324
}
2425

app/Models/Product.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ protected function casts(): array
1818
{
1919
return [
2020
'type' => ProductType::class,
21+
'price' => 'float',
2122
];
2223
}
2324
}

0 commit comments

Comments
 (0)