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 1
1
# A Server- Side Calculated Field For Laravel Nova
2
2
3
3
This 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.
5
5
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
7
17
For example:
8
- ### As a number
18
+ #### As a number
9
19
![ Calculated Number Field] ( https://cbk-website.s3.amazonaws.com/calculated-field/number_calc_field.gif " Calculated Number Field ")
10
20
11
- ### As a string:
21
+ #### As a string:
12
22
![ Calculated String Field] ( https://cbk-website.s3.amazonaws.com/calculated-field/string_calc_field.gif " Calculated String Field ")
13
23
14
- #### Default
24
+ ##### Default
15
25
The Listener field will by default sum all numbers passed to it
16
26
17
- ## Usage
27
+ ### Usage
18
28
``` php
19
29
<?php
20
30
You can’t perform that action at this time.
0 commit comments