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
The config values are not loaded after a config:cache command.
The values are read the wrong way here : https://github.com/Edujugon/laradoo/blob/master/src/Odoo.php#L723.
They should be read this way, in order to get the cached values when the command above is executed : config('laradoo.db').
The text was updated successfully, but these errors were encountered:
I managed to load these values with the following workaround but the package should definitely be able to read cached config values :
// method declared in a OdooService for example.// then, call your service method (new OdooService)->connect() instead of the (new Odoo)->connect() method./** * Connect to odoo api. * * @return \Edujugon\Laradoo\Odoo * @throws \Edujugon\Laradoo\Exceptions\OdooException */publicfunctionconnect(): Odoo
{
return (newOdoo)
->host(config('laradoo.host'))
->db(config('laradoo.db'))
->username(config('laradoo.username'))
->password(config('laradoo.password'))
->connect();
}```
The config values are not loaded after a
config:cache
command.The values are read the wrong way here : https://github.com/Edujugon/laradoo/blob/master/src/Odoo.php#L723.
They should be read this way, in order to get the cached values when the command above is executed :
config('laradoo.db')
.The text was updated successfully, but these errors were encountered: