| @@ 288-292 (lines=5) @@ | ||
| 285 | */ |
|
| 286 | protected function formatColumn($column = '') |
|
| 287 | { |
|
| 288 | if (Str::contains($column, '->')) { |
|
| 289 | $this->isJsonType = true; |
|
| 290 | ||
| 291 | $column = str_replace('->', '.', $column); |
|
| 292 | } |
|
| 293 | ||
| 294 | return $column; |
|
| 295 | } |
|
| @@ 335-339 (lines=5) @@ | ||
| 332 | protected function formatName($column) |
|
| 333 | { |
|
| 334 | if (is_string($column)) { |
|
| 335 | if (Str::contains($column, '->')) { |
|
| 336 | $name = explode('->', $column); |
|
| 337 | } else { |
|
| 338 | $name = explode('.', $column); |
|
| 339 | } |
|
| 340 | ||
| 341 | if (count($name) == 1) { |
|
| 342 | return $name[0]; |
|