| @@ 58-68 (lines=11) @@ | ||
| 55 | $this->afterUpdate($model, $request); |
|
| 56 | } |
|
| 57 | ||
| 58 | public function afterUpdate($model, Request $request) |
|
| 59 | { |
|
| 60 | if (!$this->isRelationField()) { |
|
| 61 | return; |
|
| 62 | } |
|
| 63 | if ($this->isReadonly()) { |
|
| 64 | return; |
|
| 65 | } |
|
| 66 | ||
| 67 | $this->syncRelations($model, $request->get($this->name())); |
|
| 68 | } |
|
| 69 | ||
| 70 | public function columns(int $columns) |
|
| 71 | { |
|
| @@ 151-161 (lines=11) @@ | ||
| 148 | $this->afterUpdate($model, $request); |
|
| 149 | } |
|
| 150 | ||
| 151 | public function afterUpdate($model, Request $request) |
|
| 152 | { |
|
| 153 | if (!$this->isRelationField()) { |
|
| 154 | return; |
|
| 155 | } |
|
| 156 | if ($this->isReadonly()) { |
|
| 157 | return; |
|
| 158 | } |
|
| 159 | ||
| 160 | $this->syncRelations($model, $request->get($this->name())); |
|
| 161 | } |
|
| 162 | ||
| 163 | public function getListView($model) |
|
| 164 | { |
|