Skip to content

Commit

Permalink
Changed relationship name to plural form
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Aug 29, 2024
1 parent b1fccc8 commit 7f20138
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Attachment/Attachable.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,28 @@
trait Attachable
{
/**
* @deprecated Use the `attachment` method instead.
* This method will be removed in the next major release.
*
* Get all the attachments associated with the given model.
*
* @param string|null $group
*
* @return MorphToMany
*/
public function attachment(?string $group = null): MorphToMany
{
return $this->attachments($group);
}

/**
* Get all the attachments associated with the given model.
*
* @param string|null $group
*
* @return MorphToMany
*/
public function attachments(?string $group = null): MorphToMany
{
return $this->morphToMany(
Dashboard::model(Attachment::class),
Expand Down

0 comments on commit 7f20138

Please sign in to comment.