Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class HTMLHelper |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @param $label |
||
17 | * @param $name |
||
18 | * @param $value |
||
19 | * @param array $options |
||
20 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
21 | */ |
||
22 | public function makeFileUpload($label, $name, $value = null, $required = true, array $options = []) { |
||
23 | $data = []; |
||
24 | $data['value'] = $value; |
||
25 | $data['name'] = $name; |
||
26 | $data['label'] = $label; |
||
27 | $data['required'] = $required; |
||
28 | $data['encrypt'] = isset($options['encrypt'])?$options['encrypt']:true; |
||
29 | return view("crudbooster::html_helper.file_uploader.index", $data); |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @param $label |
||
34 | * @param $name |
||
35 | * @param $value |
||
36 | * @param array $options |
||
37 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
38 | */ |
||
39 | public function makeImageUpload($label, $name, $value = null, $required = true, array $options = []) { |
||
49 | } |
||
50 | |||
51 | } |