From Laravel 5 to Laravel 10: What ACTUALLY Changed?

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ก.ย. 2024

ความคิดเห็น • 66

  • @Denakino
    @Denakino ปีที่แล้ว +31

    I think one of the biggest change was how routing works.
    Before: Route::get('/', 'PostController@index');
    Now: Route::get('/', [PostController::class, 'index']);
    You can enable the old way, but when this was introduced I was pretty confused.

    • @LaravelDaily
      @LaravelDaily  ปีที่แล้ว +12

      Yes, good point, many people were confused at that time, indeed. Should have mentioned it in the video.

    • @nidzabgd
      @nidzabgd ปีที่แล้ว

      I second this. I was like wtf is wrong with my routes now, I just started creating a new app, don't need this bs :D

  • @Zircuitz
    @Zircuitz ปีที่แล้ว +39

    Moving fast or not: Laravel has completely changed the course of my life and career. I can't imagine my life now without it. It seriously is the greatest thing for any PHP-dev since sliced bread.

    • @frankyboy1806
      @frankyboy1806 ปีที่แล้ว +2

      It's garbage

    • @JJ-jh4cm
      @JJ-jh4cm 11 หลายเดือนก่อน

      ​@@frankyboy1806why?

  • @BryceMatheson
    @BryceMatheson ปีที่แล้ว +5

    Upgrading from Laravel 8 to 10 broke a BUNCH of stuff, because I was still using some DB:raw() queries, and that was no longer supported in 10. I had a hell of a weekend re-writing nearly every single one of my queries. Some were quick, but the more complex queries with multiple joins and inner select statements took a while to figure out.

    • @LaravelDaily
      @LaravelDaily  ปีที่แล้ว

      Wait what? Laravel 10 doesn't support DB::raw()?

    • @SaiyanJin85
      @SaiyanJin85 ปีที่แล้ว

      Really?? I can't believe that to be honest. Nevertheless I was about to migrate to 10 these days, thanks for the heads up regardless if this is true or not

    • @LaravelDaily
      @LaravelDaily  ปีที่แล้ว +7

      Wow I take my words back, indeed DB::raw() isn't supported as it was. I'm surprised that not many people flagged it as an issue, perhaps low number of devs use it that way?

    • @nordicnomad5473
      @nordicnomad5473 ปีที่แล้ว

      Ouch.. that could be really frustrating :(

  • @AlfredNutile
    @AlfredNutile ปีที่แล้ว +1

    I personally am making an effort to be more open to changing with Laravel because, in the end, it tends to lead me in a positive direction. Transitioning from Bootstrap to Tailwind, switching from Mix to Vite, and exploring Vue, among other things, have helped me stay updated on the latest industry practices.
    When it comes to communication, it's an interesting point to consider, but I'm not sure if there's a better approach. Excessive communication can potentially hinder progress and dampen the innovative work taking place. However, I appreciate the fact that he responds to community feedback, which is beneficial.
    Thank you for sharing the video.

  • @psgbjj
    @psgbjj ปีที่แล้ว +5

    I'm very new to Laravel (started a month ago) and this explains a lot. Searching online for solution for problems can be confusing because the framework has apparently changed quite a lot. And it doesn't make it easier I use the new Vue Composition API, which you rarely see being used in examples! But I'm getting there. It's a great stack!!

    • @LaravelDaily
      @LaravelDaily  ปีที่แล้ว +2

      Vue is a different topic. Composition API is totally different from the old one, so you have to be careful reading which version is the tutori for.

  • @hristijant9578
    @hristijant9578 ปีที่แล้ว +2

    Also worth to mention that laravel changes the minimum required PHP version with each major version, so it’s good to have that in mind as well.
    Great video by the way, would be very interesting to see a video on upgrading from v5 to v10 😄

  • @filippetrovic6670
    @filippetrovic6670 ปีที่แล้ว +2

    I've worked with many frameworks so far, but Laravel is a well thought out framework with great versioning. You can jump back to any package at any time

  • @lukmannakib7497
    @lukmannakib7497 12 วันที่ผ่านมา

    Thanks for the video

  • @arturpasnik
    @arturpasnik ปีที่แล้ว +1

    Spotted Cosmic Gate !!!!!!!!!!!!!!!! Oh man, all the best and a big Thank you for all your work.

    • @LaravelDaily
      @LaravelDaily  ปีที่แล้ว +1

      Yup, big fan of cosmic gate :)

  • @smith4591
    @smith4591 ปีที่แล้ว +8

    I've been using Laraval since version 5. It updated to version 6 before I had even finished my program. I am still using Laravel to this day, now it's at version 10. From version 5 to version 8, Laraval changed drastically in my experience. Not so much from version 8 to version 10.

    • @LaravelDaily
      @LaravelDaily  ปีที่แล้ว +1

      What exactly you would point out as "drastical" changes that I missed?

    • @bumblebity2902
      @bumblebity2902 ปีที่แล้ว +1

      @@LaravelDaily He means that he did some serious refactor to run app in newer versions of Laravel.

    • @smith4591
      @smith4591 ปีที่แล้ว +1

      @@LaravelDaily Yes as the Bumble Bity said, I had to spend a lot of time refactoring the code to get it to work with the new version when 6, and 7 came. But recently when I updated my Laravel 9 app to Laravel 10, all I did was change some package versions in the composer.json file. I don't remember the exact changes I did since it was long ago.

  • @KastsEcho
    @KastsEcho ปีที่แล้ว

    In the default project skeleton (laravel/laravel) alone, there have been 95 files changed between 5.5 and the current release. In the framework itself, around 2.2k files have changed between 5.5 and the current version. So, yes, Laravel has changed significantly since 5.5. While some code might work from back then, there will probably be some adaptations required due either changed method signatures, deprecated/removed methods, class-based factories, etc.

  • @eugenlisov
    @eugenlisov ปีที่แล้ว +5

    The factories have also changed, from factory(Model) format to Model::factory()->create(), around Laravel 8. Initially I installed the compatibility package to allow them to continue working, but after a while I spent a couple of hours going through hundreds of tests and updated all.

    • @LaravelDaily
      @LaravelDaily  ปีที่แล้ว +2

      Good point, yes, should have mentioned that one in the video, too.

  • @MarijanKopcic
    @MarijanKopcic ปีที่แล้ว +1

    Nice video, cheers!

  • @ahanafi-id
    @ahanafi-id ปีที่แล้ว

    Good, I have same in opinion with you. Nice video, thank you.

  • @ercog7921
    @ercog7921 ปีที่แล้ว +6

    How about a video of the most breaking things from version 5 to 10?

    • @LaravelDaily
      @LaravelDaily  ปีที่แล้ว

      Isn't it the same I just mentioned? Or what do you mean.

    • @ercog7921
      @ercog7921 ปีที่แล้ว +1

      @@LaravelDaily No, this video is more about the packages/ecosystem that has been changed. I'm talking about things that no longer work, as an example one comment mentions Route::get('/', 'PostController@index') controllers

  • @miktrango
    @miktrango ปีที่แล้ว +4

    Most of the work in upgrading from 5.5/6 is to adapt methods to PHP 8.1+ syntax...isn't it?

    • @LaravelDaily
      @LaravelDaily  ปีที่แล้ว +2

      Yes required PHP versions need to be upgraded on the server, and OPTIONALLY you may choose to use PHP 8 syntax if you want to.

  • @litvinenkow
    @litvinenkow ปีที่แล้ว

    really simple project may take a day to move and some project needs some more days, but it's not critical if you have unit tests or somekind testing environment

  • @AhmedSalah-xm9xu
    @AhmedSalah-xm9xu ปีที่แล้ว +1

    Nice thumbnail👍

  • @GamePlayByFaks
    @GamePlayByFaks ปีที่แล้ว +2

    Hi, there were changes in laravel auth and guards in 5.x you coulnd't get a lot information in controller, there are far more thing'S then you mentioned.

  • @ward7576
    @ward7576 ปีที่แล้ว

    It's not about slow pace as in less "big things" have happened... the general API has changed quite enough for more intricate development.
    Say "it hasn't changed a lot" when you have to do manual upgrades.

  • @keltoummeziani3317
    @keltoummeziani3317 ปีที่แล้ว

    please help me, How to implement the inheritance? (Thanks for your videos I enjoyed them).

  • @AliMuhammadRajwa
    @AliMuhammadRajwa ปีที่แล้ว

    To streamline the process, kindly specify the video you're referring to and incorporate it into the video by adding an "i" button. Your cooperation is appreciated. Thank you.

  • @kizunaastin5308
    @kizunaastin5308 ปีที่แล้ว

    It's hard to adopt changes, but in reality we need to, our server Linux version need to update because of LTS and does the php version and Laravel affected.

  • @wandeshokunbi
    @wandeshokunbi ปีที่แล้ว

    I started learning laravel not very long ago at version 8. Then I picked up old projects written by other Devs in version 7. It wasn't a problem at all.
    When I picked up version 5, I was pretty confident till I came across the Form blade directive. I had worked with laravel for several years and didn't know this existed.
    So, yeah I can agree laravel doesn't move too fast. But some changes could be very polarising. Imagine how many forms exist in any project, to have to deal with that.

  • @antonyantony9077
    @antonyantony9077 ปีที่แล้ว

    it massive changes compared with CI, I just foll since 4.x structure directory changed i don't follow again. just follow email news everything updated time by time 😅

  • @zohaibhassan156
    @zohaibhassan156 ปีที่แล้ว

    For me. moving away from bootstrap/Vue to Tailwind is the what actually changed.

  • @andycx2
    @andycx2 ปีที่แล้ว

    At my company the application code base is around 15 to 20 years old. We are looking at building a new platform based around laravel but how are you meant to make a long term application like this when things change so much? There is no way we are going to constantly upgrade it like this.

    • @akizer0
      @akizer0 ปีที่แล้ว +1

      You dont have to. Our client still happy with our project built in Laravel 6. We dont have to change major stuff, only bug fixes every few weeks. Only build with newest for new project. after that just stick with whatever version you use.

    • @LaravelDaily
      @LaravelDaily  ปีที่แล้ว +1

      I thought to convince you with this video that Laravel is NOT changing fast, and most changes are optional. I guess I failed at this :) feel free to not use Laravel if you don't want to

    • @andycx2
      @andycx2 ปีที่แล้ว

      @@LaravelDaily you convinced me it's not as bad as I initially thought

    • @andycx2
      @andycx2 ปีที่แล้ว +1

      @Aizuddin Yusoff yes this is the conclusion I came to also

  • @dailyai24
    @dailyai24 ปีที่แล้ว

    Hi Laravel Daily, I'm a junior php developer in a company , they work with core php , in that case should I leave the company and move to any other opportunity who works with laravel ? I'm pretty confused about that .

    • @LaravelDaily
      @LaravelDaily  ปีที่แล้ว

      It's a personal preference, if you're happy with current job then why look for another?

  • @QueeeeenZ
    @QueeeeenZ ปีที่แล้ว

    I have also heard older devs say that nothing has really changed in years in Laravel 😅

  • @Novica89
    @Novica89 ปีที่แล้ว

    Vite seems to have broken the Laravel Modules package? How would you use Laravel Modules with Vite bundler and have a modular app now? Since Laravel Modules uses webpack

    • @LaravelDaily
      @LaravelDaily  ปีที่แล้ว

      Not sure, haven't tried modules package in a while, you could raise an issue on their repository.

    • @Novica89
      @Novica89 ปีที่แล้ว

      @@LaravelDaily Yeah, I just watched your video about Laravel Module package the other day, thought about using it in my current project which is 10.x version, but read in Laravel Modules docs that they use webpack and then tried to search the internet for solution for Vite. Kinda doesn't exist yet.

    • @LaravelDaily
      @LaravelDaily  ปีที่แล้ว +2

      Well alternative option is to change to use Webpack again.

  • @GamePlayByFaks
    @GamePlayByFaks ปีที่แล้ว

    Eloquent relationship changes that are not mentioned, and many more.

    • @LaravelDaily
      @LaravelDaily  ปีที่แล้ว +2

      Relationship CHANGES? You mean additional new functions like one-of-many?
      It's not changes, it's new features, it's not the same.

  • @ivan.silicin
    @ivan.silicin ปีที่แล้ว

    I guess something wrong with me, 5:40 I don't use any CSS framework in my project (online store), just pure CSS.

    • @LaravelDaily
      @LaravelDaily  ปีที่แล้ว +1

      Nothing is wrong, use whatever you prefer

  • @faiz3711
    @faiz3711 ปีที่แล้ว

    I'm a person who's not very good with change in general, I was hurt about webpack and laravel UI

  • @bulent2435
    @bulent2435 ปีที่แล้ว

    I think PHP's and Laravel's biggest problem is the lack of desktop and mobile app support. While Javascript, C#, Flutter and probably some other languages/frameworks are offering an ability of creating everything with a single language/code base, we have to use at least one more language to be able to cover multiple use cases. I think PHP or Laravel team should focus on that area, otherwise sooner or later both will die.

    • @nemac23
      @nemac23 ปีที่แล้ว

      Couldn't a js desktop app still use laravel backend api?

  • @6srer
    @6srer ปีที่แล้ว

    Over here Wondering why this guy pushed for functions to define what hey return.... that's so unnecessary....
    Let people return what they want to return

  • @mykola.slisarenko
    @mykola.slisarenko ปีที่แล้ว +3

    It’s so hard to watch this video for people who still have Laravel 5.5 version and forcing PM to update it to 10 version🥲
    Yes, it’s me😅