Skip to content
This repository was archived by the owner on Mar 7, 2024. It is now read-only.

Commit 7c5e5bd

Browse files
committed
Update readme
1 parent fd438d8 commit 7c5e5bd

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

README.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,30 @@
11
# A Server- Side Calculated Field For Laravel Nova
22

33
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.
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
717
For 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
1525
The Listener field will by default sum all numbers passed to it
1626

17-
## Usage
27+
### Usage
1828
```php
1929
<?php
2030

0 commit comments

Comments
 (0)