How to Setup TailwindCSS 3.0 in a Laravel 9 Project | Full Laravel 9 Course | Laravel For Beginners

  Рет қаралды 12,496

Code With Dary

Code With Dary

Күн бұрын

Пікірлер: 30
@r.b.4009
@r.b.4009 2 жыл бұрын
awesome run through! Great guide on how to set this up, where I struggled with several other tutorials. Thanks so much!
@codewithdary
@codewithdary 2 жыл бұрын
You're very welcome!
@joshua0x
@joshua0x Жыл бұрын
Great video. Not to long, but with all the information needed.
@codewithdary
@codewithdary Жыл бұрын
Thank you Joshua!
@e-poxytutorials1297
@e-poxytutorials1297 2 жыл бұрын
Awesome information. Thank you. I am just starting out with Tailwind and this is very informative.
@codewithdary
@codewithdary 2 жыл бұрын
Lovely man, good luck with that! :)
@blanche0018
@blanche0018 2 жыл бұрын
I really though there will be a lot of changes since Vite, but I think it doesn't affect all of the tutorial at all. I followed the installation from tailwind, but I still watched this, because there's a lot more info that I didnt really know, most of it were tiny details. Thanks Sir! I
@codewithdary
@codewithdary 2 жыл бұрын
Vite is just a replacement of Webpack which compiles your frontend assets. Doesn't really change anything to the core of Laravel. Compiling assets in Vite and Webpack both have the same "general idea" behind it. You can use a Tailwind CDN as well to follow this course which makes it simple as well.
@blanche0018
@blanche0018 2 жыл бұрын
@@codewithdary Ohhh thanks for the explanation Sir! I've been learning a lot from your tutorial, since I am using Laravel for my project. But I use React for frontend and firebase for database instead. I still followed everything since I know I need to know it.
@johnnyade
@johnnyade Жыл бұрын
Updating this video would be useful as Laravel now uses vite, I had problems until I was able to figure out how use tailwindcss with vite
@codewithdary
@codewithdary Жыл бұрын
Definitely. Got lots of other content ideas first :) tailwindcss.com/docs/guides/laravel#vite
@lukinkoo
@lukinkoo Жыл бұрын
When you develop in Docker container on a Linux machine (e.g. I use Lando, VSCode), where do you actually install Tailwind CSS? Inside the container? Or on the local machine (in Linux)?
@codewithdary
@codewithdary Жыл бұрын
I'm not very familiar with Docker, but I would most likely install it inside the container, since the development environment will be consistent across different machines.
@stephenzammit3512
@stephenzammit3512 2 жыл бұрын
Hi Dary thank you for your very interesting material that you upload for us. No words to thank yuou enough. My question if I may please Laravel 9 dropped webpack and is only supporting vite. Will you be giving a tutorial on this issue please? Thank you and well done.
@codewithdary
@codewithdary 2 жыл бұрын
Not anytime soon. Too many small issues with Vite now and I have other plans.
@fabiansb
@fabiansb Жыл бұрын
Hi, I'm on a project with Laravel 9 and Mix. I've installed tailwind and I got noticed my tailwind.config.js isn't working. What do I have to do? Any suggestion? I could solve it by putting code into css/app.css below the @tailwind directives, but It's gonna be useful for me doing that on tailwing.config.js theme.
@codewithdary
@codewithdary Жыл бұрын
Here is the docs that works for Laravel Vite: tailwindcss.com/docs/guides/laravel
@bakarbsa
@bakarbsa Жыл бұрын
I'm using tailwind elements, which files i should import 'tw-elements' on laravel 9?
@lfan_tv
@lfan_tv 2 жыл бұрын
hi why my first time run the code can show the tailwind css style, but i change the color then it does not work?
@MePeterNicholls
@MePeterNicholls 2 жыл бұрын
I use bootstrap. Can bootstrap be used like this?
@codewithdary
@codewithdary 2 жыл бұрын
You can install bootstrap manually and compile sass. First, add it to npm with compilers: npm install bootstrap npm install sass npm install sass-loader Second, create (if not created) resources/sass/app.scss and add this: @import '~bootstrap'; Third, add compilation in webpack.mix.js: mix.sass('resources/sass/app.scss', 'public/css') Than, compile it with npm run dev - you see compiled file public/css/app.css Now you can use it in templates with asset:
@MePeterNicholls
@MePeterNicholls 2 жыл бұрын
@@codewithdary wow thank you!
@eldoradokolade
@eldoradokolade 2 жыл бұрын
@@codewithdary Please can you pin this comment to this video? Thank you
@djordje1999
@djordje1999 Жыл бұрын
Can you do updated version of this video? Backsupport is awful for laravel..
@codewithdary
@codewithdary Жыл бұрын
I won't be doing that, I already have two 'how to install Tailwind CSS' videos on my channel.
@codewithdary
@codewithdary Жыл бұрын
Also; how much more updated do you want it to be? Laravel 9 + Tailwind 3?
@savmass
@savmass Жыл бұрын
Unfortunately the files did not generate like you've listed so I am unable to install it properly.The series has been amazing so far, I really hope I can still follow without installing tailwind CSS. As well, my package.json looks very different than yours, with many missing lines.
@codewithdary
@codewithdary Жыл бұрын
Hi savmass. You could also use tailwind CDN (just google it) and use that instead of the stylesheet. It’s easier for demonstration purposes.
@savmass
@savmass Жыл бұрын
@@codewithdary I'll look it up, thank you for the reply. Am I ok just to use npm uninstall to get rid of what I had installed so far then?
@codewithdary
@codewithdary Жыл бұрын
Yes, that should do the trick for you :)
Become a PRO at Using Components in Laravel
32:51
Code With Dary
Рет қаралды 37 М.
这三姐弟太会藏了!#小丑#天使#路飞#家庭#搞笑
00:24
家庭搞笑日记
Рет қаралды 121 МЛН
He bought this so I can drive too🥹😭 #tiktok #elsarca
00:22
Elsa Arca
Рет қаралды 47 МЛН
Cursor Is Beating VS Code (...by forking it)
18:00
Theo - t3․gg
Рет қаралды 60 М.
How To Connect Your React Frontend To Your AspNetCore Backend
23:13