Has anyone tried this @alwaysblank suggestion successfully?
I tried:
// MyComposer.php
public function override()
{
return [
'test' => function() {
return 'test';
}
]; }
// my-view.blade.php
{{ test() }}
But I get
Call to undefined function test()