rtconner / laravel-tagging

Tag support for Laravel Eloquent models - Taggable Trait
MIT License
882 stars 168 forks source link

Update README for proper eager loading #67

Closed cristianuibar closed 9 years ago

cristianuibar commented 9 years ago

From my experience with your package this is the only proper way to eager load. Otherwise the script would query the DB for every TAG I have. Test it yourself and let me know.

rtconner commented 9 years ago

Nice, I didn't think to do it that way, I might try to work that into the trait to make it easier to use.