A
A
avr19722018-02-12 14:19:18
Laravel
avr1972, 2018-02-12 14:19:18

What is the best way to get data from database in Laravel?

Need to get data from database in Laravel. You can prescribe a method for obtaining data from the database in each model, or you can create a repository and once register a method for obtaining data from the database in it. How to do it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
artemmityushov, 2018-02-12
@avr1972

Or you can read the documentation and understand how Laravel works. The most correct way. Especially to understand how models work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question