How to use locahost as domain. Eg instead of http://my-site.test => http://localhost:8000 #1286
Unanswered
the-programmer-alex
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Trying to use Laravel Breeze and the auth package, Sanctum, requires the same top level domain. Ie localhost.
However, valet's top level domain is the folder name, mysite.test. Is it possible to change it to using localhost instead?
I've tried
valet proxy my-site http://localhost:8000
However, that gives an unable to connect on localhost and 502 bad gateway on mysite.test. Not sure if renaming my website folder to localhost would work.Edit
Actually, upon reading the docs, http://my-site.test is localhost behind the scenes. Hence something like Laravel Sanctum would still authenticate properly in dev environment.
Version
Valet 2
Beta Was this translation helpful? Give feedback.
All reactions