@@ 28-32 (lines=5) @@ | ||
25 | { |
|
26 | $models = $request->only('models'); |
|
27 | ||
28 | array_walk_recursive($models, function (&$item) |
|
29 | { |
|
30 | if ($item == 'true') $item = true; |
|
31 | elseif ($item == 'false') $item = false; |
|
32 | }); |
|
33 | ||
34 | // Generate app.json |
|
35 | File::put(base_path('scaffolder-config/app.json'), |
|
@@ 52-56 (lines=5) @@ | ||
49 | { |
|
50 | $models = $request->only('models'); |
|
51 | ||
52 | array_walk_recursive($models, function (&$item) |
|
53 | { |
|
54 | if ($item == 'true') $item = true; |
|
55 | elseif ($item == 'false') $item = false; |
|
56 | }); |
|
57 | ||
58 | // Generate app.json |
|
59 | File::put(base_path('scaffolder-config/app.json'), |