Skip to content

Commit f154cd1

Browse files
committed
update readme file with Basic Usage
1 parent 97d848b commit f154cd1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,17 @@ use Flatroy\FieldProgressbar\FieldProgressbar;
5959
public function fields(NovaRequest $request)
6060
{
6161
return [
62-
FieldProgressbar::make('Awesomeness'),
62+
Number::make(__('Score'), 'score')
63+
->min(0.01)
64+
->max(1)
65+
->step(0.01)
66+
->hideFromIndex()
67+
->hideFromDetail(),
68+
69+
FieldProgressbar::make(__('Score'), 'score')
70+
->hideWhenUpdating()
71+
->hideWhenCreating()
72+
->sortable(),
6373
];
6474
}
6575

0 commit comments

Comments
 (0)