We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2de7ea6 commit 770ab4cCopy full SHA for 770ab4c
src/Traits/WithAlpineJsAttributes.php
@@ -49,7 +49,7 @@ public function xDataMethod(string $method, ...$parameters): static
49
public function xModel(?string $column = null): static
50
{
51
if ($this instanceof Field) {
52
- return $this->x('model', $this->column());
+ return $this->x('model', $column ?? $this->column());
53
}
54
55
return $this->x('model', $column);
0 commit comments