Fixerio icon indicating copy to clipboard operation
Fixerio copied to clipboard

Issue with Laravel 5.6

Open grafxflow opened this issue 7 years ago • 3 comments

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()

grafxflow avatar May 21 '18 18:05 grafxflow

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
        )

)

grafxflow avatar May 21 '18 19:05 grafxflow

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.

Nacoma avatar Jun 07 '18 17:06 Nacoma

Thanks for the update :)

grafxflow avatar Jun 08 '18 16:06 grafxflow