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/.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners