Fixerio
Fixerio copied to clipboard
Issue with Laravel 5.6
I am having issues in 5.6 for now I can get it to work by swapping...
'Exchange' => Fadion\Fixerio\Facades\Exchange::class
for..
'Exchange' => Fadion\Fixerio\Exchange::class,
Otherwise I start getting error output like..
Call to undefined method Fadion\Fixerio\Facades\Exchange::get()
Update: it seems to be related to the $base = 'EUR', preset not being editable for the free API version :(
Array
(
[success] =>
[error] => Array
(
[code] => 105
[type] => base_currency_access_restricted
)
)
This is because the service provider “provides” Exchange::class while the facade accessor is expecting it to provide ”exchange”.
It was broken in the 5.4 compat commit. I’ll open a pull request for this shortly.
Thanks for the update :)