Why does backpack_url() return http:// URL while APP_URL contains https:// ? #716
-
I am getting errors loading assets as a result of this. I refreshed cache with: php artisan config:cache and php artisan route:cache Same result. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi Gabriel, is it truly
Also check your -Mark |
Beta Was this translation helpful? Give feedback.
-
Hey @gabrielfigueroa thanks for the question and thanks for the answer @MaraIGI It's like @MaraIGI said, we use the URL helper under the hood, we just add the "admin prefix segment" to the url. Please ensure your .env is correct, you can also enforce https in your if($this->app->environment('production')) {
\URL::forceScheme('https');
} Hope that helps. Cheers |
Beta Was this translation helpful? Give feedback.
Hey @gabrielfigueroa thanks for the question and thanks for the answer @MaraIGI
It's like @MaraIGI said, we use the URL helper under the hood, we just add the "admin prefix segment" to the url.
Please ensure your .env is correct, you can also enforce https in your
RouteServiceProvider
:Hope that helps.
Cheers