php artisan dump-serve with laravel

Viewed 28

I need to use dump-serve to debug the code but I don't know how to use it:

This is the client code:

axios({
        method: 'post',
        url: 'http://127.0.0.1:8000/api/ciudadano',
        data:{"name":"xxx","last_name":"xxx","email":"xxx@gmail.com","pass":"xxxxx"},
        headers: {
            "Content-Type": "application/json",
            'Access-Control-Allow-Origin' : '*',
            },
    }).then(function (response) {

      console.log(response)
        
      });

But whe run php artisan dump-serve I get this:

[OK] Server listening on tcp://127.0.0.1:9912

How that works? because I can not use tcp with axios. And if I set the url as http://127.0.0.1:9912 it does not work

0 Answers
Related