Bootstrap has it's own component to make navbar and you can see that https://getbootstrap.com/docs/5.2/components/navbar/. First of all you have to include bootstrap's CSS file in your project. if you want to use JS features it is required to use JS file also. lets create some routes in laravel: Route::view('/', 'home')->name('home'); Route::view('/about', 'about')->name('about); Route::view('/contact', 'contact')->name('contact'); Enter fullscreen mode
Enter fullscreen mode now lets create the nav-bar.blade.php for navbar you can use the default https://getbootstrap.com/docs/5.2/components/navbar/.