Mar 18, 2022
Ideally you don't want to be updating all your models in your controllers, they should handle requests and return a response. You should create a repository for your models to handle the CRUD. This is a helpful article to get started: https://www.twilio.com/blog/repository-pattern-in-laravel-application