-
Notifications
You must be signed in to change notification settings - Fork 74
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
Class 'Cdn' not found #23
Comments
Can you try with CDN instead of Cdn? |
Which version of Laravel are you using? |
I using Laravel 5.4 |
Did you register the service provider and facade? |
I only registered the provider, according to the documentation How do I configure the Facade ? |
Can you try adding the following to config/app.php in the aliases array? 'CDN' => Publiux\laravelcdn\Facades\CdnFacadeAccessor::class |
Can you tell me what you have set as your CDN_Url in your .env file? Alternatively, you may have specified it in the config/cdn.php file (you did remember to publish the config file, right?) The 'scheme' index is given by a pure php function, not this library, which means PHP is having a problem parsing the CDN url you have specified. |
How should I specify my CDN_Url, do I need to pass my bucket? Or just need to inform https://s3.amazonaws.com? |
You can just do https://s3.amazonaws.com . However, that's the default in the cdn.php config file. I'm not sure why it's not being parsed if you did in fact publish the cdn.php config file. |
We were able to resolve this by correctly correcting our cloud front address. And we left our CDN_Url by default https://s3.amazonaws.com. Anyway, thank you very much for your help and congratulations for the package. |
Hi,
When trying to call Cdn::path() I have this problem at view
Class 'Cdn' not found
Laravel 5.4
Homestead
The text was updated successfully, but these errors were encountered: