Setting up Tailwind CSS in a Laravel Project

Поділитися
Вставка
  • Опубліковано 7 вер 2024
  • In this video, I'll show you how to set up Tailwind CSS in a new Laravel project.
    Enjoying my teaching style? I'm creating an independent Tailwind CSS course called Pro Tailwind. Check it out at protailwind.com ❤️

КОМЕНТАРІ • 25

  • @peteremmanuelkitsamba4867
    @peteremmanuelkitsamba4867 Рік тому +3

    wow, great content, easy to understand

  • @BikramjitSarker
    @BikramjitSarker Рік тому +2

    Good one. Quick and easy

  • @AdilKhan-vf2es
    @AdilKhan-vf2es 8 місяців тому +1

    Good stuff 👍

  • @question-du-temps
    @question-du-temps 6 місяців тому +1

    Thanks ! I wanna know your vs code setup config. I love it.

  • @YoutuberNTD
    @YoutuberNTD Рік тому

    Worked for me !!!! Thank you bro 😍🤩🥰

  • @emekatimothyiloba699
    @emekatimothyiloba699 Рік тому +1

    Nice Explanation bro

  • @musiclovers8488
    @musiclovers8488 Рік тому

    awesome

  • @tanoryjakaperdana1419
    @tanoryjakaperdana1419 Місяць тому

    Its doesnt need to run the npm?

  • @Computertechzone
    @Computertechzone 10 місяців тому

    sir please create a video on how can we setup Tailwindcss with PHP or how can we integrate Tailwindcss with PHP

    • @simonswiss
      @simonswiss  10 місяців тому +1

      The Tailwind setup is sort of independent from PHP - you'll need either a tool that supports PostCSS (Vite, Webpack, ...), or simply use the Tailwind CLI: tailwindcss.com/docs/installation

  • @omareliotorrescastillo4808
    @omareliotorrescastillo4808 Рік тому

    Do i need always to run npm run watch in order to use Tailwindcss in Laravel?

  • @baap_hon
    @baap_hon 9 місяців тому

    not working bcz laravel breeze tailwind not working on welcome file, it works only on login/register/dashboards

  • @JuliusKibbassa
    @JuliusKibbassa 10 місяців тому

    So whenever I try installing tailwind css it gives me error EPERM. Is there a way to solve it ?

  • @jeffryjamespaner747
    @jeffryjamespaner747 Рік тому

    help, npm run watch is not working for me

  • @Dana-pq7uf
    @Dana-pq7uf 9 місяців тому +1

    I dont have webpack.mix.js...
    Edit: Nvm I fixed it.

    • @simonswiss
      @simonswiss  9 місяців тому

      Yeah, since this video Laravel has switched from webpack to Vite.js 👍

  • @jomerverola300
    @jomerverola300 2 роки тому

    what if there's no webpack and only vite.js it does effect?

    • @simonswiss
      @simonswiss  2 роки тому +1

      Vite will take care of processing PostCSS for you. Here's the official guide on setting up Tailwind CSS with Laravel using Vite: tailwindcss.com/docs/guides/laravel

    • @chkibriamiranmasood9382
      @chkibriamiranmasood9382 2 роки тому

      thanks i was stuck here

  • @rognales
    @rognales 2 роки тому

    How do you hot reload the browser?

    • @graham11545
      @graham11545 Рік тому

      install Laravel Breeze... run artisan serve and npm intsall && npm run dev done

  • @user-lm9ve2js2t
    @user-lm9ve2js2t Рік тому

    Somehow webpack.mix.js file does not exist in my project. I'm new to PHP laravel

    • @simonswiss
      @simonswiss  Рік тому

      I think Laravel has switched to using Vite instead of webpack (and therefore the webpack.mix.js file).
      You can check this guide to setup Laravel with Vite: tailwindcss.com/docs/guides/laravel

    • @user-lm9ve2js2t
      @user-lm9ve2js2t Рік тому

      @@simonswiss HI ! I fixed my problem yesterday! And thanks !
      :) I'm a new grad trying to get first job and damn it's hard