static sidebar laravel on dynamic page code example
Example: show sidebar dynamically in laravel
if (view()->exists('custom-template')) {
return view('custom-template', $data);
}
return view('default-template', $data);
if (view()->exists('custom-template')) {
return view('custom-template', $data);
}
return view('default-template', $data);