mardi 3 janvier 2017

Best option in laravel to create multiple modules under different namespace

I am new to Laravel and need to know how can i structure my project in Laravel.

1) We have almost 21 different modules in the project all the modules are connecting with same database but each module should be register under different nsmaspace.

for example - if i have admin and inventory, the admin should access from /admin and inventory should access from /inventory. Also it will be fine if i can write the routing for each namespace from the corresponding app folder.

2) Another thing we have a different level of user and the different URL will be accessible to those who have permission. So i am planning to write a middle ware for checking the permission before the user request is reaching each controller. So i need a top level middle ware also to check the permission of the login user for all the module.

What structure will be good to implement this type of application. I only need to connect only one database throughout the application.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire