PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Written By
Views

Installing Bootstrap,React in Laravel

Installing Bootstrap,React in Laravel

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/ui

2. 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 install

4. Compile assets using the following command

npm run dev

5. Watch for changes

npm run watch

The procedure is the same with installing react, you, however, need to replace ‘bootstrap’ with ‘react’ in step 2

Comments (0)

loading comments