@@ -21,7 +21,7 @@ |
||
| 21 | 21 | [ |
| 22 | 22 | 'middleware' => [], |
| 23 | 23 | 'namespace' => 'RafflesArgentina\ResourceController', |
| 24 | - ], function ($router) { |
|
| 24 | + ], function($router) { |
|
| 25 | 25 | $router->resource('test', 'TestController'); |
| 26 | 26 | $router->resource('test2', 'TestUseSoftDeletesController'); |
| 27 | 27 | } |
@@ -131,14 +131,14 @@ |
||
| 131 | 131 | $id = $fields['id']; |
| 132 | 132 | } else { |
| 133 | 133 | $id = ''; |
| 134 | - } |
|
| 134 | + } |
|
| 135 | 135 | |
| 136 | 136 | if (array_except($fields, ['id'])) { |
| 137 | 137 | $record = $relation->updateOrCreate(['id' => $id], $fields); |
| 138 | 138 | array_push($keys, $record->id); |
| 139 | 139 | array_push($records, $record); |
| 140 | - } |
|
| 141 | - } |
|
| 140 | + } |
|
| 141 | + } |
|
| 142 | 142 | |
| 143 | 143 | if ($keys && (property_exists($this, 'pruneHasMany') && $this->pruneHasMany !== false)) { |
| 144 | 144 | $notIn = $relation->getRelated()->whereNotIn('id', $keys)->get(); |