Torann / laravel-currency

This provides Laravel with currency functions such as currency formatting and conversion using up-to-date exchange rates.
http://lyften.com/projects/laravel-currency
BSD 2-Clause "Simplified" License
390 stars 138 forks source link

Custom Storage Driver specified in config not being used when in production #120

Open marlongichie opened 5 years ago

marlongichie commented 5 years ago

Hello,

I've added a custom storage driver, which seems to work fine when running locally.

However, when deployed to production, it does not seem to get used, and instead reverts to using the "database" driver instead.

Here's the config:

'driver' => 'api',
'drivers' => [
        'api' => [
            'class' => \App\Currency\StorageDriver::class,
            'connection' => null,
            'table' => null,
        ]
]

This configuration works fine locally. But the moment it is deployed to production. it uses the database driver instead of the one specified in the config file.

Please advise.