How to organize a 4 Standard Project

Asked

Viewed 217 times

1

I’m starting now with Laravel 4 and would like to know how you organize your project? referring to controller and model classes.

For example, in my case I will have an administrative area and I will have the site(front), I would like to separate the parts. In the Codeigniter I used the HMVC and in the Laravel?

1 answer

2

As Laravel 4.X uses Composer and PHP 5.3+ (laravel4.2 requires php5.4+), usually create a folder inside the app like this:

I created the "Hub" folder, and added it to Composer.json like this:

Note: It is necessary to run the "Composer dump-autoload" command for the new files created. and you use the default "app" structure for the frontend.

The way to call them is " Hub Suapasta Suaclasse".

Browser other questions tagged

You are not signed in. Login or sign up in order to post.