outl1ne / nova-settings

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

Add optional default value, if setting with given key was not found. #15

Closed liorocks closed 4 years ago

liorocks commented 4 years ago

It would be nice to have an ability to pass optional default value to the nova_get_setting helper function, just like, cache(), session() and other methods have in Laravel.

Tarpsvo commented 4 years ago

Awesome! Great idea to add this, makes complete sense. Thanks a ton!

Tarpsvo commented 4 years ago

Hey! I merged your PR's and released them in version 2.5.0 along with some other updates. Thanks helping out and sorry about the delay. Good luck!