LJP's avatar
Level 1

Interfaces in lumen

I need a 'car' interface which need to be implemented by vehicle controller. I saw interfaces in contracts folder in illuminate. Where should I save my car interface file in lumen?

0 likes
2 replies
bobbybouwmann's avatar
Level 88

Well it completely depends on the size of your project. When you for example focus on cars it might be wise to have a complete directory focused on cars in your app directory.

For now I would recommend to create a directory called contracts and store them in there. While doing that you have two options as well. You can place this folder in app/Http/Controllers/Contracts or in app/Contracts. That's all up to you.

Since this is a controller specific interface I would place it in app/Http/Controllers/Contracts

2 likes

Please or to participate in this conversation.