I am using DarkaOnLine/L5-Swagger package for project. Here is example annotation
/**
* @OA\Post(
* //annotations etc..
* )
*/
public function login(LoginRequest $request): JsonResponse
{
//login method
}
But using annotations in controllers complicates the code. Is there another way to do it in separate file?