1 | <?php |
||
15 | class File extends BaseFile |
||
16 | { |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $type = 'file'; |
||
21 | |||
22 | protected $cast = 'json'; |
||
23 | |||
24 | /** |
||
25 | * @var bool |
||
26 | */ |
||
27 | protected $multiSelect = false; |
||
28 | |||
29 | /** |
||
30 | * @var bool |
||
31 | */ |
||
32 | protected $showFileList = true; |
||
33 | |||
34 | /** |
||
35 | * @var int |
||
36 | */ |
||
37 | protected $fileUploadsLimit = 0; |
||
38 | |||
39 | /** |
||
40 | * @return bool |
||
41 | */ |
||
42 | public function isMultiSelect() |
||
46 | |||
47 | /** |
||
48 | * @return $this |
||
49 | */ |
||
50 | public function enableMultiSelect() |
||
56 | |||
57 | /** |
||
58 | * @return bool |
||
59 | */ |
||
60 | public function isShowFileList() |
||
64 | |||
65 | /** |
||
66 | * Disable file list |
||
67 | * |
||
68 | * @return $this |
||
69 | */ |
||
70 | public function disableFileList() |
||
76 | |||
77 | /** |
||
78 | * @return \Illuminate\Config\Repository|mixed |
||
79 | */ |
||
80 | protected function getDefaultExtensions() |
||
84 | |||
85 | /** |
||
86 | * @return int |
||
87 | */ |
||
88 | public function getFileUploadsLimit() |
||
92 | |||
93 | /** |
||
94 | * The maximum number of files that can be uploaded. |
||
95 | * |
||
96 | * @param int $value |
||
97 | * |
||
98 | * @return $this |
||
99 | */ |
||
100 | public function setFileUploadsLimit(int $value) |
||
106 | |||
107 | /** |
||
108 | * @return array|mixed|static |
||
109 | */ |
||
110 | public function getValue() |
||
123 | |||
124 | protected function mutateValueAsPath() |
||
147 | |||
148 | /** |
||
149 | * @return array |
||
150 | */ |
||
151 | public function toArray() |
||
159 | } |
||
160 |