@@ -569,20 +569,20 @@ |
||
| 569 | 569 | $relations = []; |
| 570 | 570 | |
| 571 | 571 | foreach ($inputs as $column => $value) { |
| 572 | - if (method_exists($this->model, $column)) { |
|
| 573 | - $relation = call_user_func([$this->model, $column]); |
|
| 574 | - |
|
| 575 | - if ($relation instanceof Relations\Relation) { |
|
| 576 | - $relations[$column] = $value; |
|
| 577 | - } |
|
| 578 | - } elseif (method_exists($this->model, \Illuminate\Support\Str::camel($column))) { |
|
| 579 | - $column = \Illuminate\Support\Str::camel($column); |
|
| 580 | - $relation = call_user_func([$this->model, $column]); |
|
| 581 | - |
|
| 582 | - if ($relation instanceof Relations\Relation) { |
|
| 583 | - $relations[$column] = $value; |
|
| 584 | - } |
|
| 585 | - } |
|
| 572 | + if (method_exists($this->model, $column)) { |
|
| 573 | + $relation = call_user_func([$this->model, $column]); |
|
| 574 | + |
|
| 575 | + if ($relation instanceof Relations\Relation) { |
|
| 576 | + $relations[$column] = $value; |
|
| 577 | + } |
|
| 578 | + } elseif (method_exists($this->model, \Illuminate\Support\Str::camel($column))) { |
|
| 579 | + $column = \Illuminate\Support\Str::camel($column); |
|
| 580 | + $relation = call_user_func([$this->model, $column]); |
|
| 581 | + |
|
| 582 | + if ($relation instanceof Relations\Relation) { |
|
| 583 | + $relations[$column] = $value; |
|
| 584 | + } |
|
| 585 | + } |
|
| 586 | 586 | |
| 587 | 587 | } |
| 588 | 588 | |