DEV Community

Discussion on: Question for PHP/Laravel developers.

Collapse
 
mubarakky profile image
Mbo

OK, I'll go first:

  1. To aid in the logical organization of my code, I link a set of features to related table(s) and logic such that it ends up having corresponding model(s), controller(s) and views. For example, say I have a set of features called "Admin {CRUD}" I'll create a table called "users" or "admins", then I'll create a model called "User" or "Admin", then a controller called "AdminController" with my logic going into the controller.