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 137 forks source link

How to override database all method ? #71

Open DrudgeRajen opened 7 years ago

DrudgeRajen commented 7 years ago

I need to use two column for exchange rate i.e. buying and selling rate . But the exchange rate column is hardcoded in the package. Is there any way so that i can overide all method of Database.php class?? So, that i can fetch both buying and selling rate instead of one exchange rate .

Xerixe commented 6 years ago

You are able to change the class in the config file for "drivers.database.class" to use your custom class instead.

nayant4f commented 6 years ago

How to override this method can you please give demo example for it.

nayant4f commented 5 years ago

how to override convert method in custom class ?