B
B
Billy Milligan2015-10-18 17:17:04
Laravel
Billy Milligan, 2015-10-18 17:17:04

Where to process data from DB in laravel 5?

Learning laravel, where is the best place to process data from the database?
In the controller where do I get them?
where is it better to describe the functions for processing data from the database, also in the controller? Or is the logic somehow taken out?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Skobkin, 2015-10-18
@skobkin

It all depends on the complexity of the code. Perhaps it makes sense to put something into services. It is possible - to process in the controller.
In general, take a look at Best Practices and read the code of other popular Laravel applications.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question