5 ms·
Laravel at least has Query Builder: http://laravel.com/docs/5.1/queries http://laravel.com/docs/5.1/queries As an interesting side note: Laravel's AR ORM (=Elo
by trm42 11y ago
Laravel at least has Query Builder:
http://laravel.com/docs/5.1/queries http://laravel.com/docs/5.1/queries
As an interesting side note: Laravel's AR ORM (=Eloquent) is built on top of the Query Builder so you can leverage Query Builder with AR if you know what you're doing. Can also lead to big problems if you don't realize the possibilities and the caveats.
- EGreg 11y agoLike what kind of problems?
- trm42 11y agoHere has been discussion in another comments about overusing ARs for trying to achieve too complicated things that'll lead to DB performance problems. As stated elsewhere here, AR is good for CRUD operations but after that you should use Query Builder or plain SQL to achieve the more complicated cases.