Saturday, March 18, 2017

How to debug laravel api request from mobile client?


I am now developing mobile app that integrated with web service. Web service is now developing on laravel framework.
The problem was that when I tried to debug request on laravel project from mobile app, I couldn't handle it.
I am now using IDE as Phpstorm for developing web service.
For debug, I made a new Php Http Request for this api request and executed debug.
When I get debug point, it shows "{"error":"token_not_provided"}"; Maybe I used middleware jwt.auth so if I tried to debug it, it needed token. How can I handle this problem so I can debug api rest request from mobile app?

I use Xdebug for php debugging.
Hope to get response soon from professional developers.
Cheers.



via Lang Lang

Advertisement