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
I have configured the Eloquent driver with the following setup:
Global Sets are set to use files
Global Variables are set to use Eloquent
This configuration works for retrieving values. However, when saving values to the Global Sets, the data is being stored in both locations:
In the file: /content/globals/mycoolglobalset.yaml
In the database: global_set_variables table
At runtime, the values are only read from the database, which means the file becomes redundant and creates unnecessary changes in version control (dirty Git state).
Expected Behavior:
When Global Variables are configured to use the Eloquent driver, values should be stored only in the database and not persisted to YAML files.
How to reproduce
Configure eloquent-driver.php with the following settings:
Bug description
I have configured the Eloquent driver with the following setup:
This configuration works for retrieving values. However, when saving values to the Global Sets, the data is being stored in both locations:
/content/globals/mycoolglobalset.yaml
global_set_variables
tableAt runtime, the values are only read from the database, which means the file becomes redundant and creates unnecessary changes in version control (dirty Git state).
Expected Behavior:
When Global Variables are configured to use the Eloquent driver, values should be stored only in the database and not persisted to YAML files.
How to reproduce
eloquent-driver.php
with the following settings:mycoolglobalset
. This will result in:/content/globals/mycoolglobalset.yaml
global_set_variables
database tableAdd a field to the blueprint and save a value.
Observe that:
/content/globals/mycoolglobalset.yaml
and theglobal_set_variables
tableLogs
Environment
Additional details
No response
The text was updated successfully, but these errors were encountered: