As I see it, there are 3 options for the application folder structure of a AngularJS front-end / Laravel back-end architecture.
1. Angular app in public directory of Laravel
1 2 3 4 5 6 |
project |__back-end (laravel) |____public |______(angular front-end files) |
2. Laravel in api directory of Angular app
1 2 3 4 5 6 |
project |__front-end |___api |_____(back-end files) |
3. Completely seperate folders for Laravel and AngularJS app
1 2 3 4 5 |
project |__front-end |__back-end |
Having them totally separate means you could serve your back-end on a sub domain such as api.domain.com.
One thought on “Folder Structure options for Laraval & AngularJS”