You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During unit testing, if I load a fresh set of settings, it returns empty. How do I make sure it initializes to the default settings without having to save them one time? I don't want to depend on the cache.
The text was updated successfully, but these errors were encountered:
I figured it out. I had to set data_type to boolean in addition to 'type' as boolean.
Also I noticed when you call settings()->all() or (new \QCod\AppSettings\Setting\AppSettings(settings())->all();
It gives you the database values instead of the cast values -- which should be the case for (new \QCod\AppSettings\Setting\AppSettings(settings()))->all();
During unit testing, if I load a fresh set of settings, it returns empty. How do I make sure it initializes to the default settings without having to save them one time? I don't want to depend on the cache.
The text was updated successfully, but these errors were encountered: