Model updates for #3200

This commit is contained in:
James Cole
2020-07-24 16:40:42 +02:00
parent 50ee1a11f6
commit 117affb1d4
2 changed files with 16 additions and 0 deletions

View File

@@ -143,6 +143,13 @@ class Account extends Model
throw new NotFoundHttpException;
}
/**
* Get all of the tags for the post.
*/
public function objectGroups()
{
return $this->morphToMany(ObjectGroup::class, 'object_groupable');
}
/**
* @codeCoverageIgnore