Use .localhost
*.localhost
is reserved for local development (RFC 6761)
Natively recognized by browsers
No conflicts with real domains
Recommended Laragon Configuration
Modify domains in Laragon:
Menu → Preferences → General
Change {name}.dev
to {name}.localhost
Generate wildcard certificate:
# Install mkcert if not already done
mkcert -install
# Create wildcard certificate for localhost
mkcert "*.localhost" localhost 127.0.0.1 ::1
Regards