fisharebest/laravel-floats
A Laravel package for handling floating-point numbers safely. It offers an Eloquent cast and helpers to store, retrieve, and compare floats without precision or locale issues, keeping decimal attributes consistent across your database and application.
FLOAT columns. It fits a Laravel/MySQL monolith or service where migrations are the standard schema-change mechanism. However, Laravel’s native Blueprint already exposes float/double in many versions, so the package’s architectural value depends on a specific gap: exact FLOAT DDL, version-specific behavior, or avoiding raw SQL. Treat it as a thin migration convenience, not a platform component.FLOAT, DOUBLE, and DECIMAL, and precision/rounding behavior that surfaces later in reporting or financial logic. MIT license limits legal exposure but not operational exposure.$table->float() or raw SQL?FLOAT semantically correct for the data, or should the team use DOUBLE/DECIMAL?SHOW CREATE TABLE. Maintain an exit path: replace package-specific calls with native Blueprint methods or DB::statement() raw DDL. Because the package affects migrations only, removal is straightforward once existing migrations are rewritten or frozen.composer.json constraints against the current Laravel major version and MySQL 5.7/8.0 variants used in lower and production environments. Confirm behavior under CI migration runs, rollback paths, and schema dumps. Check whether the package relies on deprecated Laravel schema APIs or Doctrine DBAL assumptions.FLOAT columns and rule out native Laravel support.FLOAT is approximate and can produce precision drift in analytics, billing, or aggregation workloads. If the column stores money or exact measurements, the team should challenge the requirement before adopting the package.How can I help you explore Laravel packages today?