quantity

Installation

Install Lara Zeus Quantity by running the following commands in your Laravel project directory.

1composer require lara-zeus/quantity

Usage:

use it in your resource

1\LaraZeus\Quantity\Components\Quantity::make('amount_number')
2 ->heading('select quantity')
3 ->default(3)
4 ->maxValue(10)
5 ->minValue(2)
6 ->stacked()
7 ->steps(2)
8 
9 ->label('select quantity')
10 ->required()
11 ->inlineLabel()
12 ->disabled()
13 ->hiddenLabel()
14 ->helperText('between 2 and 10')
15 ->columnSpan(1)
16 ,

Zeus is an open-source project. Thanks to my sponsors for helping me maintain this project.