token ??= Str::uuid()->toString(); }); } public function playlist(): BelongsTo { return $this->belongsTo(Playlist::class); } protected function expired(): Attribute { return Attribute::get(fn (): bool => $this->created_at->addDays(7)->isPast()); } }