$playlists * @property int $user_id * @property Carbon $created_at */ class PlaylistFolder extends Model { use HasFactory; public $incrementing = false; protected $keyType = 'string'; protected $guarded = ['id']; protected static function booted(): void { static::creating(static fn (self $folder) => $folder->id = Str::uuid()->toString()); } public function playlists(): HasMany { return $this->hasMany(Playlist::class); } public function user(): BelongsTo { return $this->belongsTo(User::class); } }