Did you check the documentation of Bootstrap itself? It is pretty clear what you need to do: https://getbootstrap.com/docs/5.2/getting-started/vite/
Bootstrap and Vite have nothing to do with Laravel itself because it's a CSS framework and not PHP code itself. So you should be good with following the Bootstrap tutorial.
@bobbybouwmann Thanks for your assistance. I thought that Laravel is going to config the vite.
It has nothing to do with Laravel
You can use CDN
<head>
<link href="https://cdn.jsdelivr.net/npm/[email protected] /dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/[email protected] /dist/js/bootstrap.bundle.min.js" integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" crossorigin="anonymous"></script>
</body>
If you want to customize it for serve it from your server, follow the following: https://getbootstrap.com/docs/5.2/getting-started/vite/
@MohamedTammam That is not the question, right? He wants to use Vite to have it compile locally and optimize the output for production. The CDN won't do that for you.
@bobbybouwmann I think he just wants to install it anyway. And since Laravel using Vite so he mentioned that. I added that in that case.
Bootstrap is a framework of CSS means its used for design in frontend
you can use bootstrap classes plus links
its not used for backend
Please sign in or create an account to participate in this conversation.