php - admin and frontend folder separation laravel 4 -
i new in laravel 4 , want know standard structure of folder. have problem separation of folder admin panle , front end file , folder in laravel 4. please me how can made standard folder structure in laravel 4.
laravel comes predefined folder structure fine majority of web applications (especially new-comers). structure this:
/app /commands /config /controllers /database /lang /models /start /storage /tests /views /bootstrap /public you'll spend of time in app/controllers, app/models, app/views , public.
by default major things automatically loaded you. separation, you'd want folder both frontend , backend in following directories.
/app /commands /config /controllers /backend /frontend /database /lang /models /backend /frontend /start /storage /tests /views /backend /frontend you'll then, example, use namespaces in controllers.
<?php namespace backend; use controller; class dashboardcontroller extends controller { } you might find models same both front , backend. if that's case don't need duplicate code.
but when comes down it. way structure project left hands. laravel ship default folder structure , it's great start, many find growing pains when start develop more complex , evolving application. once you've hit point should @ level know kind of structure want , need.
Comments
Post a Comment