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 b1fccc8 commit 7f20138Copy full SHA for 7f20138
src/Attachment/Attachable.php
@@ -14,13 +14,28 @@
14
trait Attachable
15
{
16
/**
17
+ * @deprecated Use the `attachment` method instead.
18
+ * This method will be removed in the next major release.
19
+ *
20
* Get all the attachments associated with the given model.
21
*
22
* @param string|null $group
23
24
* @return MorphToMany
25
*/
26
public function attachment(?string $group = null): MorphToMany
27
+ {
28
+ return $this->attachments($group);
29
+ }
30
+
31
+ /**
32
+ * Get all the attachments associated with the given model.
33
34
+ * @param string|null $group
35
36
+ * @return MorphToMany
37
+ */
38
+ public function attachments(?string $group = null): MorphToMany
39
40
return $this->morphToMany(
41
Dashboard::model(Attachment::class),
0 commit comments