So you are picking up laravel and you love bootstrap or react but can’t figure how to make them work in your laravel project. Here is how to get up and running
1. Require laravel ui with composer
composer require laravel/ui2. Use php artisan to add the ui component(bootstrap, React, Vue) as a package to be installed
php artisan ui 'bootstrap'3. Install the package using npm
npm install4. Compile assets using the following command
npm run dev5. Watch for changes
npm run watchThe procedure is the same with installing react, you, however, need to replace ‘bootstrap’ with ‘react’ in step 2
Comments (0)