Laravel: View Composer

This method checks if our view composer is listening to the right view and appends the variable $navigation to it.View Composer testI know this is the most basic test you could possibly write, but it is a good start to see if the view composer works.ConclusionEither closure or class based view composers will simplify the code and make it easier for other developers to work with it..Also it is a part of Laravel and why should we not use such a powerful service. I am looking forward to new features of Laravel and I hope that I was maybe able to show you something new.. More details

Leave a Reply