Skip to content

Addon settings don't use field defaults #14376

@marcorieser

Description

@marcorieser

Bug description

When addon settings are not saved yet, they are empty when accessing them with $addon->settings(). It would be very nice if they would use the field defaults defined in the settings blueprint.

How to reproduce

As described above.

Logs

Environment

Environment
Application Name: Transform Studios
Laravel Version: 12.56.0
PHP Version: 8.5.4
Composer Version: 2.9.5
Environment: local
Debug Mode: ENABLED
URL: transform.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: null
Cache: file
Database: mysql
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Livewire
Livewire: v4.2.2

Statamic
Addons: 12
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.7.3 PRO

Statamic Addons
aryehraber/statamic-captcha: 1.17.0
jacksleight/statamic-bard-mutator: 3.0.5
jacksleight/statamic-distill: 1.1.1
marcorieser/statamic-livewire: 5.3.0
statamic-rad-pack/typesense: 3.1.0
statamic/seo-pro: 7.3.0
transformstudios/events: dev-fix/v6-issues
transformstudios/front: 3.1.2
transformstudios/github: dev-main
transformstudios/prime: dev-fix/v6-issues
transformstudios/review: 6.0.0
transformstudios/uptime: dev-prime

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions