There are 23 tables in database. We are using laravel.
1. Agreements
2. Amenities
3. Assign roles
4. Company profile
5. Events
6. Geomaster
7. Mail Sms template
8. Maintenance request for property
9. Maintenance type
10. Modules
11. Owner Expectation
12. Properties
13. Property Documents
14. Property Inspections
15. Property Types
16. Publish Rate Card
17. Rate Cards
18. Rejection Reason
19. Tenant Screening Criteria
20. Transactions
21. User Types
22. Vendor Types
23. System indexes
There are 3 roles : Admin, Owner and Vendor.
The code is already written and is very clumsy according to me. There are only few controllers and all the code is dumped into them. I am thinking to make 23 models and 23 controllers, that is , one per table. We have two options to make role management. One is at code level and another is at page level. I am thinking to move ahead with code level for optimisation. My question - is my approach correct or there is better way to handle this situation?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire