We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 648191b commit 29cd65bCopy full SHA for 29cd65b
src/Form/Field/MultipleSelect.php
@@ -46,7 +46,13 @@ protected function getOtherKey()
46
*/
47
public function fill($data)
48
{
49
- $relations = Arr::get($data, $this->form->shouldSnakeAttributes() ? Str::snake($this->column) : $this->column);
+ if ($this->form && $this->form->shouldSnakeAttributes()) {
50
+ $key = Str::snake($this->column);
51
+ } else {
52
+ $key = $this->column;
53
+ }
54
+
55
+ $relations = Arr::get($data, $key);
56
57
if (is_string($relations)) {
58
$this->value = explode(',', $relations);
0 commit comments