How to (Still) Use Bootstrap in Laravel 10?

Поделиться
HTML-код
  • Опубликовано: 5 окт 2024
  • There's a common myth or misconception that Laravel uses Tailwind by default. You still can use Bootstrap, let me show you how.
    [Related Tutorial] Convert Bootstrap Theme into Laravel Project: Step-by-Step laraveldaily.c...
    - - - -
    Support the channel by checking out my products:
    My Laravel courses: laraveldaily.c...
    Laravel QuickAdminPanel: quickadminpane...
    Livewire Kit Components: livewirekit.com
    - - - -
    Other places to follow:
    My weekly Laravel newsletter: us11.campaign-...
    My personal Twitter: / povilaskorop

Комментарии • 61

  • @__byteWise01
    @__byteWise01 Год назад +20

    I honestly prefer to use this approach:
    1. Install Laravel
    composer create-project laravel/laravel example-app
    2. Use in project folder
    npm i bootstrap
    3. Copy the css and js folders from the following locations
    -node_modules/bootstrap/dist/css
    -node_modules/bootstrap/dist/js
    4. Paste the css and js folders into the public folder
    5. Insert the links into the layout file

  • @DeepStreamBits
    @DeepStreamBits Год назад +17

    I haven't found Tailwind compelling. I've seen dozens of articles and tutorials explaining the "benefits" but I just can't see them

    • @julienSibille
      @julienSibille Год назад +5

      I can't afford those 1km one liners of classes from utilities first inside my html. I keep my css separated with Bootstrap too !

    • @CODINGISEASY
      @CODINGISEASY Год назад +3

      @@julienSibille tailwind only works well if you put everything into its own components and then just reuse the components

    • @julienSibille
      @julienSibille Год назад +4

      @@CODINGISEASY Yeah, but this way i still prefer having clean component with just 1 class and the css logic separated !
      But this is my own preference !

  • @CODINGISEASY
    @CODINGISEASY Год назад +11

    *Nice tutorial. I started to use tailwind but I find bootstrap much easier because I know it from memory*

  • @vincej151
    @vincej151 Год назад +10

    I use Bootstrap. I have looked at Tailwind, and for me, it is exceedingly verbose. I have no interest in having my site appear to be "unique". All I need is functionality. It does not solve any problem. Lastly Tailwind represents just more time learning. I can use that time more productively doing something else.

  • @innograp
    @innograp Год назад +14

    I tried tailwind before but bootstrap is still much easier to understand😊

  • @kamil19862307
    @kamil19862307 Год назад +9

    Thank you! I believe many people still use Bootstrap, including myself. Therefore, if you show on the project how you connect styles and js files from an already laid out site design, it will be great.

    • @LaravelDaily
      @LaravelDaily  Год назад +3

      That's exactly what I'm showing in the article that I've demonstrated in the video, link in the description.

  • @coolcha
    @coolcha Год назад +3

    I still use Bootstrap. It is improving significantly, over the coming releases Bootstrap will be getting native Dark Mode support and ability to control themes which should help one of the major pain points of Bootstrap.

  • @alfredo78morales
    @alfredo78morales Год назад +7

    For all my projects in Laravel I still use Bootstrap.

  • @emekatimothyiloba699
    @emekatimothyiloba699 Год назад +4

    Thank you sir. I personally still use bootstrap

  • @pjr
    @pjr Год назад +3

    I think your package "Larastarters" should've mentioned here because it is helpful to quickly scaffold some bootstrap admin themes.

  • @prezire
    @prezire Год назад +2

    Been trying tailwind for months now. Don't like it. Switching back to BS5.

  • @himak21
    @himak21 Год назад +4

    I still prefer Bootstrap. It has cleaner HTML, it's free and there are more components.

  • @pileofsand8756
    @pileofsand8756 Год назад +3

    Bootstrap is still king for me.

  • @holacuba2001
    @holacuba2001 Год назад +1

    Yes to Bootstrap! I don't like inline css.

  • @Nowayjose-z2r
    @Nowayjose-z2r 6 месяцев назад

    I would argue the beginning part stating tailwind is NOT part of laravel. While technically correct it is a waste of time. I wonder how many people fast-forwarded through that. It's about perception and 100% pushing towards tailwind. Otherwise there would be options like when installing Breeze (for example). So saying it's not included by default is fine, but who really uses the default outside of an api?

  • @gt-nemachtillicomposer5478
    @gt-nemachtillicomposer5478 Год назад

    From the beginning, I started using Bootstrap, and even after years, I still use it. The difference now is that I compress or defragment the source code to only use the components that I need, instead of using everything. For example, the following video helped me do that: ruclips.net/video/6onN1FC3__A/видео.html.

  • @jssmntll
    @jssmntll Год назад

    Hi Povilas, great content. Thanks for share the knowledge. Could you please make a video integrating backstrap theme with laravel.

  • @eloquent2200
    @eloquent2200 Год назад

    Thank you for your work!

  • @andreajohn4520
    @andreajohn4520 Год назад +1

    In the older project, we don't need to run npm run dev but now it's necessary why is that so?

    • @LaravelDaily
      @LaravelDaily  Год назад +1

      Because modern projects are using js/css libraries, it's like "composer install" which we also didn't need before composer.

    • @andreajohn4520
      @andreajohn4520 Год назад

      @@LaravelDaily Okay Gotcha! 😍

  • @MrSundaayy
    @MrSundaayy Год назад +1

    Sir, which better between @extends('layouts.app') and for templating?

  • @QuantumBen
    @QuantumBen Год назад

    Good content always 😊

  • @CodewithNababur
    @CodewithNababur Год назад +1

    Just run 3 lines of code in your terminal. Install bootstrap auth
    1) composer require laravel/ui
    2) php artisan ui bootstrap --auth
    3) npm install
    4) npm run dev

  • @hamidimomov232
    @hamidimomov232 Год назад +4

    I still use Bootstrap.

  • @shahzadawahed2579
    @shahzadawahed2579 Год назад +1

    Can I use bootstrap with laravel Jetstream or only laravel ui ?

    • @LaravelDaily
      @LaravelDaily  Год назад

      Laravel UI is the official one.
      There was also unofficial one called Jetstrap: github.com/nascent-africa/jetstrap - but it seems to be abandoned, with last commit over a year ago

    • @LaravelDaily
      @LaravelDaily  Год назад +1

      There's also our package Larastarters: github.com/LaravelDaily/Larastarters

    • @overholted
      @overholted Год назад

      If I have already installed Jetstream can I install Laravel UI with Bootstrap?

  • @julienSibille
    @julienSibille Год назад +1

    Still using it !

  • @zordmax
    @zordmax Год назад +2

    Bootstrap easy fast for MVP

  • @ahmedmikkawe
    @ahmedmikkawe Год назад

    I don't like tailwind but if I have to use it I will

  • @TrikNgonlen
    @TrikNgonlen Год назад +1

    A W E S O M E !

  • @MasroorHaider-dk2ch
    @MasroorHaider-dk2ch Год назад +1

    LaravelDaily/Larastarters

  • @emekatimothyiloba699
    @emekatimothyiloba699 Год назад

    What do you think about tailwind
    I’ve been using bootstrap for the past 5 years
    Will you advice that I learn tailwind just to get another option?

    • @dukeofnorfolk1842
      @dukeofnorfolk1842 Год назад +6

      Personally i wouldn't, it's literally an inline css but with classes

    • @LaravelDaily
      @LaravelDaily  Год назад +10

      It's a personal preference. I personally try to learn things when I actually NEED them, not just for options.

    • @CODINGISEASY
      @CODINGISEASY Год назад +2

      I find tailwind better for apps where you create components. You build the components with the classes so then once you make a component you dont have to keep repeating all those classes. Like if you had a vue or blade component for a button you can build the button once with all the components then just include it and pass it the text and href each time. Then if you need to change the style you only need to edit your button component. If that makes sense?

    • @askadj
      @askadj Год назад +1

      I agree with anyone that states that it's a personal preference. Also tailwind css could be a project technical requirement. In this way learning it for you will be a necessity instead of just an option. Wich I've is better? That will always depend on who is implementing it

    • @Dennis-wf9qu
      @Dennis-wf9qu Год назад +1

      ​@@dukeofnorfolk1842 That's not quite true. you wouldn't be able to make groups, hover states, animations etc. by doing inline styling

  • @JosephTinsley
    @JosephTinsley Год назад +1

    I still use Bootstrap

  • @samuraidenis
    @samuraidenis Год назад +1

    I prefer bootstrap

  •  Год назад

    Still use it. Also still use jQuery with JSP. 😂

  • @محمدابراهيم-ظ2ض
    @محمدابراهيم-ظ2ض Год назад

    bootstrap & webpack (RIP)

  • @shubhamsahuSD
    @shubhamsahuSD Год назад +1

    Tailwind ui element are nicer than bootstrap

  • @baware80
    @baware80 11 месяцев назад +1

    Real developers use bootstrap and wanna be devs try to be cool and go with tailwind.

  • @QueeeeenZ
    @QueeeeenZ Год назад

    I don't understand why would anyone want to use bootstrap in 2023 when we have react and Vue and component libraries and Tailwind

  • @gessegoncalves6493
    @gessegoncalves6493 Год назад

    After I discovered Tailwind I never looked at bostramp again

  • @dalandan8300
    @dalandan8300 Год назад

    I dont understand the bootstrap hate. Most of us dev use it where I work. Here is a dislike

  • @محمدابراهيم-ظ2ض
    @محمدابراهيم-ظ2ض Год назад

    bootstrap & webpack (RIP)

  • @AntonioPopolizio
    @AntonioPopolizio Год назад

    I still use Bootstrap