Developers often come across such problems while developing min-to-large scale applications, that they have to put “view concerned logic” into model files and that makes model lengthy and mix-up entity based logic with view-concerned logic.
Luckily, Community has extended Laravel’s functionality and developed packages to enable developers utilize view presenters to help them keep code clean, tidy and well managed.
Below are most popular and recommended packages for View Presenters.
- Laracasts Presenter by Jeff Way
- Laravel Auto Presenter by Shawn McCool
These packages are easy to install and have well documented manual for usage.
- Laracasts Presenter – https://github.com/laracasts/Presenter
- Laravel Auto Presenter – https://github.com/robclancy/presenter