Laravel Community Tools by Tighten

Onno Lissenberg

Joined: 11 years ago
Total tricks: 5
Last trick: 10 years ago

Submitted tricks

Reference the connection by name, the database could be named differently in another environment.\ Note: you might want to add backticks to the database name if the name uses alternative characters.
orlissenbe... 11 years ago 12463
A variation of http://www.laravel-tricks.com/tricks/column-selection-in-eager-loading Credits: http://stackoverflow.com/questions/16994253/laravel-eager-loading-load-only-specific-columns Warning: this trick does not work on many-to-many relations, see: https://github.com/laravel/framework/issues/2966
orlissenbe... 11 years ago 18803
I've put the full namespaces in for science.
orlissenbe... 11 years ago 8440