I am new to Laravel. Please clearly explain what changes may need to be made since I do not understand any shorthand phrases or have any 'common knowledge' when it comes to this framework. Many thanks.
Issue: <h1> class="text-3xl font-bold underline">Hello world!</h1>"doesn't work when added to blank blade.php file.
Steps: 0. Followed official installation instructions.
Configured template path in tailwind.config.js:
"./resources/**/*.blade.php", "./resources/**/*.js", "./resources/**/*.vue",Added Tailwind directives to app.css:
@tailwind base; @tailwind components; @tailwind utilities;Verified
@vite(['resources/css/app.css', 'resources/js/app.js'])exists in app.blade.php
✅ Main Question:
How do you apply Tailwind CSS to all Blade Views in Laravel 9?
☑️ Concern 1:
Do I have to manually apply @vite('resources/css/app.css') into the head of every page in the future?
☑️ Concern 2:
Shouldn't it automatically apply to all blade.php files since steps 1 & 3 were completed correctly?
Update: All instructions from the official documentation were completed. It runs fine, but the tailwind styles still don't work without adding @vite('resources/css/app.css') directly to index.blade.php.
Thank you for helping me learn.
npm run dev?publicfolder?