'boolean', 'price_minor' => 'integer', 'started_at' => 'datetime', 'current_period_end' => 'datetime', 'last_charged_at' => 'datetime', 'canceled_at' => 'datetime', ]; public function user(): BelongsTo { return $this->belongsTo(User::class); } public function entitled(): bool { return $this->status !== self::STATUS_PAST_DUE && $this->current_period_end !== null && $this->current_period_end->isFuture(); } }