Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Laravel don't see that request made over HTTPS #11

@antonkomarev

Description

@antonkomarev

When I'm developing Laravel applications locally I need to add in AppServiceProvider this code:

Illuminate\Support\Facades\URL::forceScheme('https');

Otherwise all routes generated with route() helper will use http:// instead of https://.

@mpyw do you have any ideas how to deal with it without forcing scheme in application?

Here is how I'm running the server:

hyper-run -s localhost:4000 -c ~/cert.pem -t ./public

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions