laravel-currency
laravel-currency copied to clipboard
How to override database all method ?
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 .
You are able to change the class in the config file for "drivers.database.class" to use your custom class instead.
How to override this method can you please give demo example for it.
how to override convert method in custom class ?