dpblwmh5218 2017-05-03 01:10
浏览 35

在Laravel中调试

I would like to learn debugging in Laravel using the following situation.

I am following this tutorial. I need the output like below of this line "Now try to hit the route, /api/v1/jokes, you will get an error token not provided like this:"

But I am getting output like below

enter image description here

How can I debug this situation ?

  • 写回答

1条回答 默认 最新

  • dosi8657 2017-05-03 02:06
    关注

    In this situation your best solution would be to check the list of all registered routes in Laravel.

    php artisan route:list
    

    If you don't see your /api/v1/jokes, you've lost it in your routes files.

    Generally, I'd recommend using a PHP debugger, like xdebug: https://xdebug.org/

    It's usually installed as a PHP extension and used with some modern IDEs

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度