Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

CarlEOgden's avatar

Valet / localhost/callback testing

Hi

I've got a test environment running on my laptop, I'm creating a test app to implement microsoft graph api.

The instructions are:-

https://docs.microsoft.com/en-us/graph/tutorials/php?tutorial-step=1

In step 2 it shows the call back web uri:-

http://localhost:8000/callback

BUT, as I am using Valet, my url is:- http://graph-tutorial.test

I cannot put:- http://graph-tutorial.test/callback

My question today is, how do I configure Azure as Valet is not using localhost but my foldername.test??

Cheers in advance Carl.

0 likes
2 replies
Snapey's avatar

have a look at expose from beyondco.de

CarlEOgden's avatar
CarlEOgden
OP
Best Answer
Level 4

Hi

I've managed to get it running by securing the folder in valet which allows me to create the callback to https://graph-tutorial.test/callback also, i did the valet link graph-tutorial command prior.

Cheers Carl.

Please or to participate in this conversation.