wamesk/laravel-nova-unit

Laravel Nova Units.

5.0.1 2025-03-17 08:04 UTC

This package is auto-updated.

Last update: 2025-03-17 08:05:30 UTC


README

Requirements

  • "laravel/nova": "^4.0|^5.0"

Usage

UnitSelect::make(__('product.field.weight_unit'), 'weight_unit'),

UnitSelect::make(__('product.field.weight_unit'), 'weight_unit')
    ->onlyGroups(UnitWeightEnum::class),

UnitSelect::make(__('product.field.weight_unit'), 'weight_unit')
    ->exceptGroups([
        UnitAreaEnum::class,
        UnitEnergyEnum::class,
        UnitWeightEnum::class,
        ...
    ]),

Enums

Enum Description
UnitAreaEnum Area units
UnitEnergyEnum Energy units
UnitLengthEnum Length units
UnitQuantityEnum Quantity units
UnitVolumeEnum Volume units
UnitWeightEnum Weight units