Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Laravel 5.6 #11

Open
grafxflow opened this issue May 21, 2018 · 3 comments
Open

Issue with Laravel 5.6 #11

grafxflow opened this issue May 21, 2018 · 3 comments

Comments

@grafxflow
Copy link

grafxflow commented May 21, 2018

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 grafxflow changed the title Typo in instructions Issue with Laravel 5.6 May 21, 2018
@grafxflow
Copy link
Author

grafxflow commented May 21, 2018

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
        )

)

@Nacoma
Copy link
Contributor

Nacoma commented Jun 7, 2018

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.

@grafxflow
Copy link
Author

Thanks for the update :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants