in Laravel 4 I have a master blade layout and I want to add a class to the html element like \'tpl-home\', but I need to know which is the current view name called with View
View Composers are a great way to keep/share variables in views, but the names of the views set in routes file are more a fixed value in each view than a variable, that's why, in this case,
I'd rather use Request::path() == 'viewName' in Blade like this: