show sidebar dynamically in laravel 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);