anlutro / laravel-settings

Persistent settings in Laravel
MIT License
940 stars 112 forks source link

Nested Data #181

Closed safakocamanoglu closed 1 year ago

safakocamanoglu commented 1 year ago

There is nested data in the database. Ex: one.two.three

$data = [
'one.two.three' => 'exValue'
];
setting($data)->save();

When I query this data with the helper function, it returns the second data, but the third subdata does not.

Request: setting('one.two.three'); Response: null

Request Setting::get('one.two.three'); Response: exValue

Can you post an edit for the helper function to fetch nested data as in the Helper method? The setting() function is actively used in many parts of the project.