How to deploy laravel with https static file/route()
halowahyudi
HOBBY
10 months ago
Hi, i deploy laravel and i set on .env APP_URL is https and APP_ENV already production
on static asset i set ASSET_URL and it works and render https but
in route() i got like this idk why not https
<form method="POST" action="http://xxxx.com/login">
</form>
any solutions?
1 Replies
halowahyudi
HOBBY
10 months ago
Hi! already fixed with
public function boot(): void
{
if ($this->app->environment('production')) {
URL::forceScheme('https');
}
}
but next problem is, i cannot access my tenants website
its 404 not found.. i already setup _acme-challenge.dev and *.dev but it still doesnt work
10 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • 11 months ago