Not sure why this would require another port? Is the other app also in docker?
Aug 3, 2022
4
Level 12
Open port in SAIL
Hi, thanks for your help, I am trying to connect to a docker container running sail with a laravel inside
before it was working with XAMP and was pretty easy to make a call to a route in the localhost, but I got to change to sail thus PHP 8 dont work with XAMP so This is the code that was working, but no longer thus I am running SAIL so what I got to add to the DOCKER file in order to make this works... or open the ports... no idea how to
// this was the route that is going to be called
Route::get('/generateToken', function () {
return csrf_token();
});
// then this was called externaly from another program to collect the request of the GET
http:/ /localhost/generateToken // here I make a space in the slash in order to not make a comment
hope make sense thanks in advance
Level 102
Please or to participate in this conversation.