laravel-currency icon indicating copy to clipboard operation
laravel-currency copied to clipboard

How to override database all method ?

Open DrudgeRajen opened this issue 7 years ago • 3 comments

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 .

DrudgeRajen avatar Mar 12 '17 03:03 DrudgeRajen

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

Xerixe avatar Jan 27 '18 08:01 Xerixe

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

nayant4f avatar Apr 27 '18 11:04 nayant4f

how to override convert method in custom class ?

nayant4f avatar Jul 23 '19 06:07 nayant4f