judia's avatar
Level 1

Tailwind CSS Not Working with Laravel

Basic Information: Laravel Installer Version 5.14.0 Laravel Framework Version 12.9.0 Node Version 23.11.0 NPM Version 11.2.0 Composer Version 2.8.8 Windows 10 Pro

I was originally using Herd for my laravel projects, but tailwind wasn't working unless I used the CDN. I also had difficulty getting my project to use a different database other than sqlite. I uninstalled Herd, and did it the old fashion way. Now, my database works great, but I still can't get Tailwind to do anything. The styles are there, but not being applied. I tried the fixes I found online, but without success. Any ideas on what's going on?

0 likes
1 reply
Tray2's avatar

To use tailwind you need to run npm run dev and make sure that you include vite in your layout.

 @vite(['resources/css/app.css', 'resources/js/app.js']

I suggest that you start using herd again, and since it doesn't include any database you can use dbngin to install the one of your choice.'

https://dbngin.com/

1 like

Please or to participate in this conversation.