i see that page:
and try to do that with a View::composer but i get an error
that is my code:
View::composer('panel/*', function($view)
{
$panel_manus = Manu::get();
$view->with('panel_manus',$panel_manus);
});
my route:
Route::livewire(’/buildit’, ‘panel.buildit’)
->layout(‘layouts.panel’);
but i get an error:
ErrorException
Undefined variable: panel_manus (View:
in other page its work and if i change to
View::composer(’*’, function($view)
its work
but if i add a sub like here: (with “panel” sub folder)
View::composer(‘panel/*’, function($view)
is didnt work
any help