Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Maged's avatar
Level 6

UNAUTHENTICATED IN Laravel api documentation

I'm using this package https://github.com/mpociot/laravel-apidoc-generator to generate api documentation but i got couple problems:

1- Running requests always return "unauthenticated" how to configure this in a right way ? i tried to add the login token to apidoc.php in authorization but it didn't work .

2- some request need email as @bodyParam but couldn't find a type of email so it always generate a text and this fails. how to force type email here ?

Thanks in advance, hope i was clear.

0 likes
0 replies

Please or to participate in this conversation.