Published 1 year ago by lorvent
I want to make many API calls and it comes to around 50 methods, whom i am going to use in many Controllers,
so i am wondering what is the best place to store all those methods?
- app - Http - Jobs - Library - Traits - Repositories - Foo - Bar - Listeners - Policies
Laravel is very flexible on this, there is really no right or wrong. Do what makes sense for you, what is important is that 6 months from now, you will know where to look for them.
What i meant by situations is that, code refactoring depends on the code/methods we are dealing with.
There isn't one size fits all solution for this. :)