yuwuhsien/laravel-bcmath-cast
Laravel Eloquent casts for PHP 8.4's BCMath\Number object, turning model attributes into arbitrary-precision decimals so you can use natural operators like +, -, and * directly while keeping money math exact. Requires PHP 8.4+ and Laravel 12+.
|
Package
|
Constraint
|
|---|---|
| illuminate/contracts | ^12.0|^13.0 |
| illuminate/database | ^12.0|^13.0 |
|
Package
|
Constraint
|
|---|---|
| laravel/pint | ^1.25 |
| orchestra/testbench | ^10.0|^11.0 |
| pestphp/pest | ^3.0|^4.0 |
| pestphp/pest-plugin-laravel | ^3.0|^4.0 |
| phpstan/extension-installer | ^1.3 |
| phpstan/phpstan | ^1.10 |
| phpstan/phpstan-phpunit | ^1.3 |
How can I help you explore Laravel packages today?