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 dfa369a commit 3c127abCopy full SHA for 3c127ab
src/Data.php
@@ -23,6 +23,16 @@ public function __construct(iterable $attributes = [])
23
}
24
25
26
+ /**
27
+ * Set an attribute on the data instance using "dot" notation.
28
+ */
29
+ public function set(string $key, mixed $value): static
30
+ {
31
+ data_set($this->attributes, $key, $value);
32
+
33
+ return $this;
34
+ }
35
36
/**
37
* Get an attribute from the data instance using "dot" notation.
38
*/
0 commit comments