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

oroalej's avatar

How do you structure (Folders) your project?

Hi All,

Can you share how you structure your laravel folder? like, how do you divide files to different folder. etc..

Really appreciate it.

0 likes
1 reply
corbosman's avatar

I use the same structure as laravel provides out of the box. I make 2 changes.

  1. I dont put models into the app/ folder. In larger apps I think this is very confusing. So generally I make a subfolder under app for models. I happen to call them "Repositories", but you can name it whatever.

  2. I have a Lib folder for functionality that I create in the app but isnt really a core part of the app. In an ideal world id move those to its own composer packages but I dont always get around to it.

1 like

Please or to participate in this conversation.