File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -10,4 +10,10 @@ This field type stores the **ID** of the selected file.
1010
1111Set the allowed files type. Short mime types are also supported (` audio ` , ` video ` , ` image ` ).
1212
13+ ` set_value_type($value_type) `
14+
15+ Set the type of the stored value. * (defaults to ` id ` )*
16+
17+ You can also ` url ` to store the URL of the file instead of the ID.
18+
1319` Field::make("file", "crb_price_list", "Price list (PDF)") `
Original file line number Diff line number Diff line change @@ -12,4 +12,10 @@ This field type stores the **ID** of the selected image.
1212
1313Set the allowed files type. Short mime types are also supported (` audio ` , ` video ` , ` image ` ).
1414
15+ ` set_value_type($value_type) `
16+
17+ Set the type of the stored value. * (defaults to ` id ` )*
18+
19+ You can also ` url ` to store the URL of the image instead of the ID.
20+
1521` Field::make("image", "crb_employee_photo", "Photo") `
You can’t perform that action at this time.
0 commit comments