Do I have to laravale to use Eloquent ORM?

I don't have much experience with laravale and I wanted to ask - is it necessary in General to use the model Eloquent ORM or you can just write your own and to work with the database use the DB facade?

It's just that these models are of course convenient, but most of my needs, from sample data, they do not close, as I need to sort the data in a certain way in the sample, and the result is often some sort of mess in one place I use ORM in another just make queries to the database and so on.
April 4th 20 at 12:58
2 answers
April 4th 20 at 13:00
Do I have to laravale to use Eloquent ORM?

No, not necessarily.

It's just that these models are of course convenient, but most of my needs, from sample data, they do not close, as I need to sort the data in a certain way in the sample, and the result is often some sort of mess in one place I use ORM in another just make queries to the database and so on.

Do raw queries to the database. No need to stretch an owl on the globe sampling ORM.

ORM helps when you need models with logic for some operations. If the goal is simply to get data from database extraction using SQL and mapping to DTO are still the best choice.
April 4th 20 at 13:02
Offering you a convenient tool which covers a huge number of tasks for working with the database. But also given the opportunity to write their queries, so what's the problem to use it mixed?
For example, if some narrow task cannot be solved marvelously standard set of functions for working with BDC why not use some sort of manuscript?
Laravel is very flexible tool

Find more questions by tags ORMLaravel