How to install Tailwind CSS and daisyUI in a Laravel project
Install PHP, Composer and Laravel Installer according to the official Laravel documentation
Create a new Laravel project
laravel new my-app
cd my-appnpm i -D daisyui@latestPut Tailwind CSS and daisyUI in your CSS file (and remove old styles)
@import "tailwindcss";
@source "../**/*.blade.php";
@source "../**/*.js";
@source "../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php";
@source "../../storage/framework/views/*.php";
@plugin "daisyui";Run your Laravel project
php artisan serveAnd on another terminal tab, run Vite
npm run devNow you can use daisyUI class names!
