Best practices for large models in Laravel

Viewed 2507

I have decided to recreate an existing site I have in Laravel as a means of learning how the framework works and have come across a problem I cannot seem to get a decent explanation for.

I currently use a custom MVC framework I built. At the moment I will have a "model" that has a lot of business logic in it. So for example, in my UserModel I have all the functions that interact with the database but I also have many other functions that are User related but has no interaction with the database.

Is it okay to put this code in an Eloquent model?

3 Answers
Related