amarenkov/laravel-mutable-content-daisyui
A Laravel package for managing mutable content with DaisyUI components. It provides styled, reusable content fields and UI pieces for building editable page sections and admin interfaces that match your Tailwind/DaisyUI design.
core ^0.7.7. Bump the core constraint before or alongside this package, otherwise Composer will resolve an incompatible pair and field definitions may fail to hydrate (the decimals type setting is read from core).composer require <vendor>/<package>:^0.4.1
php artisan vendor:publish --tag=<package>-config # if applicable
php artisan migrate
number and money types (and their allowed settings such as decimals, allow_negative, allow_zero) are declared. That file tells you what the fields screen and usage forms can actually render.money field to an entity. On the fields screen, create the field, pick the money type, and set “Digits after the point” (the decimals setting). Add the field to a usage form, then confirm the generated money column and cast honour the decimals value. This end-to-end path (field screen → usage form → column) is the fastest way to validate your install.decimals is a type setting stored on the field definition. Set it once on the fields screen and every form/column derived from that field should read it. Avoid hard-coding precision in Blade/column renderers.allow_negative and allow_zero defaults from the chosen type rather than being forced off. Define sensible defaults in your field type config so forms, API validation, and imports all agree.numeric, decimal:0,N (where N = decimals), min:0 unless negative is allowed, and not_in:0 (or gt:0) when zero is disallowed. Keep this in a single rule factory so the form and programmatic saves stay consistent.DECIMAL(…, N) matching decimals, and cast/normalise on the model. Format only at the presentation edge.allow_negative, allow_zero, decimals) so future core bumps don’t silently change behaviour.^0.7.7; running an older core can yield missing decimals handling or stale field metadata. Pin both packages together in composer.json and check composer why-not when resolution fails.allow_negative/allow_zero values they were saved with — including the previously forced-off switches. Audit and backfill existing field definitions if you expected negatives or zero to be permitted.decimals is a type setting, not per-usage. Changing it later affects the stored config and therefore all usages/columns for that field. Widening precision after data exists is a migration concern (column type and rounding of existing values), not just a UI toggle.decimals-aware column may render rounded values while the database holds more precision (or vice versa). Decide where rounding happens and be consistent; for money, round at input/validation time and store the rounded value.How can I help you explore Laravel packages today?