@@ 35-48 (lines=14) @@ | ||
32 | * @param array $fields |
|
33 | * @return string |
|
34 | */ |
|
35 | private function getFillables(array $fields): string |
|
36 | { |
|
37 | $fillables = ''; |
|
38 | ||
39 | foreach ($fields as $index => $field) { |
|
40 | if ($index === 0) { |
|
41 | $fillables .= "'{$field['name']}',"; |
|
42 | } else { |
|
43 | $fillables .= PHP_EOL . str_repeat(' ', 8) . "'{$field['name']}',"; |
|
44 | } |
|
45 | } |
|
46 | ||
47 | return $fillables; |
|
48 | } |
|
49 | } |
|
50 |
@@ 132-145 (lines=14) @@ | ||
129 | * @param array $fields |
|
130 | * @return string |
|
131 | */ |
|
132 | private function getFillables(array $fields): string |
|
133 | { |
|
134 | $fillables = ''; |
|
135 | ||
136 | foreach ($fields as $index => $field) { |
|
137 | if ($index === 0) { |
|
138 | $fillables .= "'{$field}',"; |
|
139 | } else { |
|
140 | $fillables .= PHP_EOL . str_repeat(' ', 8) . "'{$field}',"; |
|
141 | } |
|
142 | } |
|
143 | ||
144 | return $fillables; |
|
145 | } |
|
146 | } |
|
147 |