Clean up your Laravel models with view presenters
Published on by Eric L. Barnes
One of the hot Laravel topics lately is view presenters. I’m sure you’ve ran into a situation of cluttering your models/entities with code that is really a view concern. Luckily the community has extensive coverage of utilizing view presenters to help you keep your code clean, tidy, and awesome. In this post I wanted to highlight several tutorials and packages for implementing these:
Tutorials
- Laracasts View Presenters from scratch
- Presenters in Laravel PHP (Hexagonal Pattern Design)
- Model Presenters in Laravel 4
Packages
- Laracasts Presenter by Jeff Way
- Laravel Auto Presenter by Shawn McCool
- Rob Clancy Presenter by Rob Clancy
Eric is the creator of Laravel News and has been covering Laravel since 2012.