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 am trying to access the function config('database.database'); in a Zermelo report.
That should be returning the values from the Zermelo app.. and not the value from Zermelo.. .
Right now it returns '_zermelo_cache' which is obviously being set somewhere in zermelo...
-FT
The text was updated successfully, but these errors were encountered:
I may be misunderstanding the issue, but this is what I found.
I created a test report in LoreCommander TEST_ConfigAccess.php so I could look inside the database config variable, from within a Zermelo report. I accessed it like this:
$database = config('database');
I can see that the database config variable is a nested array structure and it's top-level keys are "connections", "default" and "migrations".
I think the config param you may be looking for is the default database configured in the .env variable, or in the mysql connection section? To access that database's parameters, you could do something like this:
I changed the cache table config in config/zermelo.php to be _zermelo_cache_2 and confirmed that the database in the config was changed also (expected.)
Let me know if this clears anything up, or if the issue isn't covered by my explanation.
I am trying to access the function config('database.database'); in a Zermelo report.
That should be returning the values from the Zermelo app.. and not the value from Zermelo.. .
Right now it returns '_zermelo_cache' which is obviously being set somewhere in zermelo...
-FT
The text was updated successfully, but these errors were encountered: