Replies: 3 comments 2 replies
-
php artisan optimize:clear Did you run this after env changes? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes. And I also ran |
Beta Was this translation helpful? Give feedback.
0 replies
-
Same issue as above, I tried also to inject |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm having an issue with pagination on my laravel app, where it keeps returning every url with a
http://
prefix, and not ahttps://
. And the strangest thing is that it seems to be only for pagination urls. So if I output a url using theurl()
helper it will use the correct one.Example of this can be seen here: https://epion.mustasj.dev/api/force
Which is set up like this:
This is set up on Digital Ocean's App Platform. I've tried manually setting
APP_URL
tohttps://epion.mustasj.dev
, I've tried explicitly settingURL::forceScheme('https');
inAppServiceProvider
, inRouteServiceProvider
and inweb.php
in the routes directory. I've tried settingFORCE_HTTPS=true
in the env file.Really at a loss here, and not sure if there's something with Laravel, or maybe something with my setup at Digital Ocean. Any hints on how to dig into this deeper to find out where it's going wrong?
Beta Was this translation helpful? Give feedback.
All reactions