outl1ne / nova-settings

A Laravel Nova tool for editing custom settings using native Nova fields.
MIT License
271 stars 99 forks source link

default('test') don't work! #157

Closed beiaduo closed 1 year ago

beiaduo commented 1 year ago

Text::make('Name') ->sortable()->rules('required', 'max:255')->default('test'),

Tarpsvo commented 1 year ago

Hi! You can set default values by inserting them into the nova_settings database table directly. It would be misleading to show a default value for a setting in the UI while it's not actually in the database.