laravel-request-docs: [BUG] Unexpected token '<', "

Describe the bug When I have define Route::resource in route file but not create all the methos in controller then it create this error. image

image

To Reproduce Steps to reproduce the behavior:

  1. just define any route in route file.
  2. do not create same method in controller
  3. See error

Expected behavior Output should show all the available/valid endpoints. image

Versions (please complete the following information): image

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 21 (11 by maintainers)

Most upvoted comments

There you go. Thanks for notifying @ERaufi

All good then? Let me know if I can close this issue.

Thanks. For the time being, you can try adding ->except(['show']) to the resource for the functions that are not implemented…

I can confirm that this worked for me. I had forgetten just “show” method to call inside except method but I got this error. After adding ->except([“update”,“edit”]) it worked.