We take a look at refactoring our code by simplifying our views and removing any logic from them. We make use of Spatie's View Model Package to extract any logic from the view into a View Model class.
Spatie Laravel View Models: https://github.com/spatie/laravel-vie...
GitHub Repo: https://github.com/drehimself/laravel...
TMDb API: https://www.themoviedb.org/documentat...
LINKS
My courses: https://codewithdre.com
Sign up for my newsletter: http://andremadarang.com/newsletter
My website: http://andremadarang.com
Twitter: / drehimself
GitHub: http://github.com/drehimself
CodePen: http://codepen.io/drehimself
Watch video Laravel Movie App - Refactoring to View Models - Part 6 online without registration, duration hours minute second in high quality. This video was added by user Andre Madarang 07 April 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 12,409 once and liked it 331 people.