简体   繁体   中英

How file structure comes in Laravel when developing a project

I have been suffering from this problem for several months now. There are lot of tutorials explain about how to implement your code using OOP methods. With parent classes, abstract classes, Interfaces etc.

My problem is where should I create such file structure in frameworks as Codeigniter, Laravel etc. I know only controller folder to define classes. Should I place all the interfaces and parent classes in controller folder? Please explain it's really mess for me.

This tutorial helped me understand where to put my own libraries. Give it a shot!

In Laravel 4, the file structure already exists in your /app folder.

See: http://laravelbook.com/laravel-architecture/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM