skyturk's avatar

Laravel folder structure the best project

Hi guys. I have new project and I wanna do with laravel. This project my first project with laravel. I wanna do as component pattern. How can I it. Do you know as it my want project on GitHub. Maybe you can send me link ?

0 likes
2 replies
AviationCode's avatar

If you meant front-end components I suggest you take a look at Jeffrey's Council project https://github.com/JeffreyWay/council

Backend a structure you could use is

  • app
    • Component1
    • Component2

Example app/Billing contains all classes related to billing like StripeGateway.php or Billable.php

martinbean's avatar

@skyturk Laravel already comes with a pre-configured folder structure.

I’m not sure what the “component pattern” is, but design patterns shouldn’t dictate how you organise your folders in an application.

Please or to participate in this conversation.