This commit is contained in:
philipp lang 2023-02-08 00:16:35 +01:00
parent 50bfa59c11
commit 826397e92a
1 changed files with 3 additions and 10 deletions

View File

@ -25,8 +25,6 @@ use Illuminate\Notifications\Notifiable;
use Sabre\VObject\Component\VCard; use Sabre\VObject\Component\VCard;
use Sabre\VObject\Reader; use Sabre\VObject\Reader;
use Spatie\LaravelData\Lazy; use Spatie\LaravelData\Lazy;
use Zoomyboy\LaravelNami\Api;
use Zoomyboy\LaravelNami\Data\MembershipEntry;
/** /**
* @property string $subscription_name * @property string $subscription_name
@ -39,6 +37,9 @@ class Member extends Model
use HasFactory; use HasFactory;
use Sluggable; use Sluggable;
/**
* @var array<string, string>
*/
public $guarded = []; public $guarded = [];
/** /**
@ -158,14 +159,6 @@ class Member extends Model
: null; : null;
} }
/**
* @return Collection<int, MembershipEntry>
*/
public function getNamiMemberships(Api $api): array
{
return $api->group($this->group->nami_id)->member($this->nami_id)->memberships();
}
public function getNamiFeeId(): ?int public function getNamiFeeId(): ?int
{ {
if (!$this->subscription) { if (!$this->subscription) {