Upcoming Laravel 11: SQLite as Default Database

Поділитися
Вставка
  • Опубліковано 8 січ 2025

КОМЕНТАРІ • 58

  • @ricko13
    @ricko13 11 місяців тому +30

    I remember facing many weird bugs in one of my laravel projects, after three days of debugging, I realized that I had been using SQLite instead of MySQL, so I switched to MySQL, and all the bugs/errors disappeared completely... all because of some special characters or something like that (im not really sure tbh)

    • @smokeyoak
      @smokeyoak 10 місяців тому

      This makes me think this change is a bit of a double edged sword. But, that is a lesson worth learning, so maybe it's a good thing overall

  • @SXsoft99
    @SXsoft99 11 місяців тому +4

    Sqlite is ok for projects as long as the developer understands the scope of the project, there is a difference between a presentation website and a CMS/internal tooling panel
    You can even use it for some small APIs with caching, but you need to ask the questions from the start, or have your techlead define the starting specs from the start
    Had a project in the past where i was using mysql localy and the devops installed MySQL on staging and mariaDB on prod
    Since mariadb enforces some things in regards to queries random bugs appeared because of lack of communication

  • @Marontyne
    @Marontyne 11 місяців тому +1

    Yes, I've always used SQLite for testing. For small projects, I've used it as the main database.

  • @zulfiqrysaadputra
    @zulfiqrysaadputra 11 місяців тому +7

    I would say this is really good on starting new environment and trying out new things plus easier for beginners on simple projects. So i think this is a good starting point. There are always options for more advanced databases, but i would not really wanna put too much setup phase at the start. Seeing as right now many Laravel tutorials suggest using MySQL for simple tutorial, but obviously you don't need to.

  • @_plamp_
    @_plamp_ 11 місяців тому

    I can see this being useful with the introduction of NativePHP

  • @shubhamsahuSD
    @shubhamsahuSD 11 місяців тому

    I am a big fan of jetstream scaffolding.
    I used to use sqlite on win form ,wpf apps and some mobile app for storing small data.

  • @master-valentin
    @master-valentin 11 місяців тому +1

    what about intervention/imagecache, it's abandoned now, how we can use filters for images and cache them now?

    • @LaravelDaily
      @LaravelDaily  11 місяців тому

      Sorry I haven't worked with that package and cant help. Maybe spatie have something alternative?

    • @cybersouls_io
      @cybersouls_io 11 місяців тому

      older version of intervention/image still work on laravel 10

  • @petkat7847
    @petkat7847 11 місяців тому

    Same as many... SQLite has issues with date types or relations if not set up properly. And I don't want to use totally different database for testing and for production. But I fully understand to this change.

  • @richardhoyle7778
    @richardhoyle7778 Місяць тому

    A little off the subject but still on the subject of sqlite
    Having a problem with setting up Laravel 11 and its sqlite in a cPanel!
    Everyone that has a tutorial on how to setup Laravel in a cPanel are also
    using MySQL not SQLite outside of installing the site in a separate file in the
    home path and then putting the public file in the public.html file then pointing the
    index.php file to look in the right paths and adding the .env file is there anything
    else I need to do to get the site to come up and work?
    P.S. this is using Godaddy hosting!

  • @scotneymamai4673
    @scotneymamai4673 11 місяців тому +1

    If you find the time, please do a video of setting up laravel on Oracle 19c or Oracle 21c. O tried deploying a laravel app with Oracle and issues started immediately I started running migrations. The video would help 💯

    • @LaravelDaily
      @LaravelDaily  11 місяців тому

      I've never worked with Oracle, sorry

  • @mikenowak2707
    @mikenowak2707 11 місяців тому +1

    Interestingly, Laravel Pulse requires MySQL so a beginner who wants that is going to run into a problem if they try to use that.

  • @Martin-f6m7e
    @Martin-f6m7e 11 місяців тому

    Interesting! To be honest, I really like to use sqlite for prototypes. You can change the database to mysql later with little effort.

    • @erwinyonathan6348
      @erwinyonathan6348 11 місяців тому

      "little effort" , if you use full eloquent , probably yes

  • @enweremudochukwu8563
    @enweremudochukwu8563 7 місяців тому

    Laravel 11 requires sqlite 3.35+ while most Ubuntu Distros are still supporting sqlite 3.31 as latest version. I've been developing with Laravel since 2015 and using mysql, but onboarding into sqlite has been faced with more bugs than I can imagine. I wonder how a new Laravel developer will cope.

  • @MarkSnape
    @MarkSnape 11 місяців тому +1

    I've always been out off sqlite because of lack of decent tooling. What are the options? Only tablePlus?

    • @moisesrubiosantos
      @moisesrubiosantos 11 місяців тому

      Yo sigo usando HeidiSQL desde hace años pero nose si llamarla decent tooling

  • @logudotcom
    @logudotcom 11 місяців тому

    ❤thanks for sharing and i agree the decision

  • @eslammostafa1247
    @eslammostafa1247 11 місяців тому +2

    For me I don't use SQLite even for testing purposes, so of course I will switch to MySQL

  • @wowdesigns7436
    @wowdesigns7436 11 місяців тому +5

    idea .. 👌 what is we do this composer create-project laravel/laravel appname --db=mysql
    🤐

    • @LaravelDaily
      @LaravelDaily  11 місяців тому +1

      Yeah, pretty sure Laravel Installer will have that as a choice or a flag, so I advise you use "laravel new" instead of "composer create-project"

    • @wowdesigns7436
      @wowdesigns7436 11 місяців тому

      @@LaravelDaily well , they company I work for likes to do it this way ..
      they didnt installed the Laravel installer 😁
      it'd better to do laravel new demo ..
      then doing composer create-project laravel/laravel demo .🤷‍♂

  • @coolcha
    @coolcha 11 місяців тому

    Great video again. You mentioned that you changed from SQLite to prod DB technology for your tests as there were some bugs due to the discrepancy - could you highlight / provide some examples of these?

    • @LaravelDaily
      @LaravelDaily  11 місяців тому

      I don't have specific examples, but they were related to using specific SQLite/MySQL functions or syntax differences in raw queries.

    • @coolcha
      @coolcha 11 місяців тому +1

      @@LaravelDaily so as long as you only use eloquent would you say you wouldn't notice a difference?

  • @porrapatcpe20
    @porrapatcpe20 11 місяців тому +1

    I am really agree with this. It likes getting the pros from Ruby on Rails.

  • @KastsEcho
    @KastsEcho 11 місяців тому

    5:20 Disagree. It feels like Taylor did that quietly, and why’s the majority are upvotes on the PR despite his Twitter/X poll showing that we actually prefer MySQL for local dev.

  • @sakensatenov
    @sakensatenov 11 місяців тому +1

    Why is sqlite easier than mysql?

    • @sakuraislashxer8173
      @sakuraislashxer8173 9 місяців тому +1

      Sqlite has a file where it reads/writes data to, mysql requires a locally hosted webserver with a mysql server on it, e.g. XAMPP. So starting with sqlite doesn't require you to install anything else.

  • @fetova
    @fetova 11 місяців тому

    Honestly, I don't mind using sqlite but, I haven't used it a lot to have issues with it

  • @ioannis_gr
    @ioannis_gr 11 місяців тому +1

    Why postgreSQL is not used that much? 😂

    • @gamerneversleep4200
      @gamerneversleep4200 11 місяців тому +1

      I dont know PostgreSQL is great database

    • @HomeEarth2025
      @HomeEarth2025 9 місяців тому

      Most hostings not provide postgresql right now, maybe one day

  • @HomeEarth2025
    @HomeEarth2025 9 місяців тому

    Only EXPERIENCE dev know why a FRAMEWORK need to use sqlite as DEFAULT one, and MUST support big database like Mysql of Oracle, Mysql of Mariadb, Postgre, etc. Larevel makes good choice as a Framework.

  • @JoxeyEmanuely
    @JoxeyEmanuely 11 місяців тому

    This is cool

  • @TechPriest27
    @TechPriest27 11 місяців тому

    Finally

  • @estudanteeric
    @estudanteeric 11 місяців тому +1

    Am I the only one who thinks this is... irrelevant? It's very easy to build with SQLite, but for new PHP developers this can't be good because they always start with tools like XAMPP. And for advanced developers, changing databases is a trivial action.

  • @azamailnet
    @azamailnet 11 місяців тому

    Ok!

  • @moghwan
    @moghwan 11 місяців тому +1

    what irritated me the most is not considering the polls' results, why asking in the first place? just change the default to sqlite and we'll switch to mysql back.

  • @TravisFont
    @TravisFont 11 місяців тому

    How about not having a default, but rather having a requirement. This forces the user to always select a data abstraction. And simply Laravel can suggest SQLite.

  • @wallinollipekka
    @wallinollipekka 11 місяців тому

    I really like this switch to use sqlite by default.

  • @soniablanche5672
    @soniablanche5672 11 місяців тому

    sqlite is not popular because it's made for development or small projects.

  • @richardwheatley7194
    @richardwheatley7194 11 місяців тому +3

    Feels like Laravel is running out of road.

  • @373323
    @373323 11 місяців тому +3

    SQLite is a bad decision , there is no practical value short of a locally running application with a single user, yeas have in the list of supported engines, but please, not the default. i am still holding my head, why? MySQL may not be the default database for many, bit SQLite is sure to provide a negative experience for a broader swath of developers.

  • @runical
    @runical 11 місяців тому

    Am I the only one who noticed you don't follow Laravel? 😅

    • @wowdesigns7436
      @wowdesigns7436 11 місяців тому

      😁 The company I work for is still using Laravel 8 ..
      Missing out The Livewires 3.0 and the newer php features 🤐

    • @LaravelDaily
      @LaravelDaily  11 місяців тому +1

      I use Twitter in a non-standard way. I don't follow many people and I don't read the official feed. I read a specific search feed on "laravel" as a keyword.

    • @runical
      @runical 11 місяців тому

      @@LaravelDaily and I think it's beautiful

  • @cardboarddignity
    @cardboarddignity 11 місяців тому

    Strong dislike (for the change, not the video). They're coming in the Google/FB way: we know how you would be better, so we change it by default and you have to perform one (or more) more actions to return everything to how it was before and how you are used to. Bullshit

  • @SEOng-gs7lj
    @SEOng-gs7lj 11 місяців тому +1

    a poll is not an election :) it could be to find out how many naysayers he need to deal with and be prepared for it

  • @eyemazed
    @eyemazed 11 місяців тому

    i dont like the change. i'm of the opinion that laravel should be developed for laravel users, not the people transitioning from other tech stacks. it's equally as easy for them to change the db driver to sqlite in env as it is for us to change it back to mysql

  • @malcomgreen4747
    @malcomgreen4747 11 місяців тому

    This very bad move, all most of successful laravel projects, are built on MySQL. Why do you want us to start with SqLite? Laravel is killing itself now

    • @roky2822
      @roky2822 11 місяців тому +1

      ??? its a config value u know u can just change it