Feb 10, 2014 Table of contents: The Problem of repetition What is a View Composer? Class View Composers in Laravel 4 Hooking it up with the database Conclusion Two important mantras of writing good quality code are Don’t Repeat Yourself and Abstraction. Every component in a computer system should only have one representation. If you find that you are repeating yourself, it’s time to perform an abs
![Using View Composers in Laravel 4 | Culttt](https://cdn-ak-scissors.b.st-hatena.com/image/square/cbaf31623d10ff7996b323e856fd2ec262580dfd/height=288;version=1;width=512/https%3A%2F%2Fculttt.com%2Fimages%2Fshare%2F2014-02-10-using-view-composers-laravel-4-ecdf05f823fe3f90ae987e99f6e4caf1.png%3Fvsn%3Dd)