diff --git a/app/Models/Card.php b/app/Models/Card.php index d2abc26..4d0d542 100644 --- a/app/Models/Card.php +++ b/app/Models/Card.php @@ -57,6 +57,21 @@ class Card extends Model return "Somebody"; } + /** + * Who, Where or What this card belongs to. + */ + public function getSubjectTypeAttribute() + { + if ($this->character) { + return "Character"; + } else if ($this->class) { + return "Class"; + } else if ($this->role) { + return "Roll"; + } + return "Anyone"; + } + /** * Get cards depending on settings. */