Install daisyUI for Laravel

How to install Tailwind CSS and daisyUI in a Laravel project

1. Create a new Laravel project

Install PHP, Composer and Laravel Installer according to the official Laravel documentation

Create a new Laravel project

Terminal
laravel new my-app
cd my-app

2. Install daisyUI

Terminal
npm i -D daisyui@latest

Add daisyUI in your CSS file

resources/css/app.css
@import "tailwindcss";
/* other stuff */

+ @plugin "daisyui";

3. Run your project

Run your Laravel project

Terminal
php artisan serve

And on another terminal tab, run Vite

Terminal
npm run dev

Now you can use daisyUI class names!

Do you have a question? Ask on GitHub or Discord server
Do you like daisyUI? Post about it!
Support daisyUI's development: Open Collective
daisyUI store

NEXUS
Official daisyUI Dashboard Template

Available on daisyUI store

More details