mmaedler's avatar

Howto version /app-Folder

Hi there — I just started using Lumen (together with Dingo) to built an internal API. Since I expect I need to maintain different API versions in the future, I was wondering if this can be reflected in the directory structure of the app folder, e.g. instead of having a controller file sitting in `/app/Http/Controllers/AuthController.p I'd like to have the structure like this: `/app/v1/Http/Controllers/AuthController.p. However, if I just add this subfolder, the app crashes (obviously).

Is it easily (read: without going through every file and modify the namespaces, etc) possible to achieve this somehow?

Thanks a lot!

0 likes
2 replies
mmaedler's avatar

Ah thanks — I've missed that. I solved the question now by creating the following folder under /app/Api/V1/[Controllers|Models]

Please or to participate in this conversation.