Facepalm, I didn't needed a setter. Just RETURN the modified view.
Blade::extend(function($view, $compiler)
{
// if you need the path/name of the current view: $compiler->getPath()
// now do something with $view like str_replace
return $view;
});
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community