| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function getConfigurationFields(Request $r){ |
||
| 37 | $category_id = $r->get('category_id'); |
||
| 38 | $configurationFields = ConfigurationField::where('category_id',$category_id)->get(); |
||
| 39 | $d = []; |
||
| 40 | foreach ($configurationFields as $field){ |
||
| 41 | $d[] = [ |
||
| 42 | 'name' => $field->name, |
||
| 43 | 'type' => $field->type, |
||
| 44 | 'html' => $this->generateConfigurationFieldHtml($field) |
||
| 45 | ]; |
||
| 46 | } |
||
| 47 | return response()->json($d); |
||
| 48 | |||
| 63 |