This repository was archived by the owner on Mar 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change 11# A Server- Side Calculated Field For Laravel Nova
22
33This package contains two Nova fields required to do server-side calculations from the Nova client.
4- The user can optionally override the calculated value on the form
4+ The user can optionally override the calculated value on the form.
55
6- ## Example
6+ For a detailed write-up of the how-and-why of this field, please visit:
7+ https://codebykyle.com/blog/laravel-nova-custom-calculated-field
8+
9+ ## Installation
10+
11+ Install the package via composer:
12+
13+ ` composer require codebykyle/calculated-field `
14+
15+
16+ ### Example
717For example:
8- ### As a number
18+ #### As a number
919![ Calculated Number Field] ( https://cbk-website.s3.amazonaws.com/calculated-field/number_calc_field.gif " Calculated Number Field ")
1020
11- ### As a string:
21+ #### As a string:
1222![ Calculated String Field] ( https://cbk-website.s3.amazonaws.com/calculated-field/string_calc_field.gif " Calculated String Field ")
1323
14- #### Default
24+ ##### Default
1525The Listener field will by default sum all numbers passed to it
1626
17- ## Usage
27+ ### Usage
1828``` php
1929<?php
2030
You can’t perform that action at this time.
0 commit comments