How to Upgrade to Laravel 9: Live-Coding Demo

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

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

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

    Excited to uncover what Laravel 9 has inside!

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

    Updating any framework is a good reason to write the missing tests first =)

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

    composer outdated --direct ... This can help speeding up the process of finding related updates for installed dependencies

    • @papapilsen9828
      @papapilsen9828 2 ปีที่แล้ว

      Hooray! Thank you for sharing

  • @GergelyCsermely
    @GergelyCsermely 2 ปีที่แล้ว

    Thanks good to see how to investigate upgrade problems.

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

    What are the terminal commands for updating an existing laravel vue project?

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

    In short: Don't upgrade yet until most packages add support for L9

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

      thx for summarize

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

      Yes, if you are using lot of 3rd party packages like me, worst case is you'll never able to upgrade.

    • @user-obyuzer
      @user-obyuzer 2 ปีที่แล้ว

      @@smith4591 or you'lneed to fork it

    • @Maystro_eg
      @Maystro_eg 2 ปีที่แล้ว

      you can install L9 then reconstruct from your L8 project

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

    thanks for the video. this was actually pretty easy to upgrade from v8, at least on the first project i upgraded. i have another project that uses flysystem so it may take longer for the test i have to run.

  • @中国在年之前我们也
    @中国在年之前我们也 ปีที่แล้ว

    i do the samee updating but i when i do laravel -v the terminal show me the old version of laravel
    "Laravel Installer 4.5.0" is that mean that my laravel is upgrading to the 9 and just it's not showing up on terminal or what i'm confused

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

    Thanks for your video. I really like how you explain things ^^

  • @papapilsen9828
    @papapilsen9828 2 ปีที่แล้ว

    Hooray! Thank you so much for sharing.

  • @fcolecumberri
    @fcolecumberri 2 ปีที่แล้ว

    FINALLY!!! a mayor laravel release that doesn't makes me modify my automation scripts... Wait!... The "lang" directory changed place?... ¿Why?... "assertDeleted" was renamed?... god damn it!
    Ya en serio ¿que ganan moviendo el directorio de "lang"?

  • @g3z
    @g3z 2 ปีที่แล้ว

    to discover outdated dependencies you can use
    composer outdated --direct

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

    Great work and thank you very much for your work.

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

    Awesome Vid as always, Sir.

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

    Also good practice in the update, is the comparison with the repo.
    For the lumen we have no news. They have left it far behind...

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

      Well, even Taylor himself doesn't recommend Lumen anymore: laravel-news.com/should-you-use-lumen-for-a-speed-boost

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

      I don't like Lumen at all 😞
      If you really want a lightweight framework then check out Slim micro framework, otherwise adopt Laravel ❤️

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

    thx!

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

    Seems you're sick ... hope you get well soon.

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

      Yeah, a little, thanks. It's quite funny that everyone is talking about COVID, but no one actually cancelled simple flu and getting cold :)

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

    Hi , I hope you are fine? How can I update php version in laravel project?

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

      You need to update PHP version on the server, not in Laravel project. This depends on your server provider, please google "PHP version upgrade" or consult your hosting provider what versions they support and how to switch.

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

    Sir is it possible to upgrade laravel version 6 to 9 directly?

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

      No, there's no "direct" upgrade. Except if you create a new Laravel 9 project and just copy the functionality from the old one, step by step.

  • @debashischowdhury3990
    @debashischowdhury3990 2 ปีที่แล้ว

    Hi Sir, I have a project in laravel 5.4 and want to upgrade it to laravel 9. Can you please suggest how to do this? I am new to laravel and learning it. Thank you in advance.

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

      With so many versions in between, I would probably create a new Laravel 9 project, and would copy the functionality piece by piece from the old project, fixing the syntax errors where needed. Or use laravelshift.com service and upgrade version by version.

  • @nikza1936
    @nikza1936 2 ปีที่แล้ว

    Thanks a lot.

  • @llBestBoyll
    @llBestBoyll 2 ปีที่แล้ว

    Nice video man 🔥

  • @adityakadam2256
    @adityakadam2256 2 ปีที่แล้ว

    I had the error for Blade component. The component was inside another livewire component. Also the alpine's x-data was put on this blade component. I got the error of getIterator on array for views. The fix was to change the blade component to simple HTML tag and everything worked fine.

  • @andywong2244
    @andywong2244 2 ปีที่แล้ว

    Povilas whats your personal rule when it comes to upgrading your laravel version? do you upgrade it the moment a new version arrives? or do you wait for a few months in order for the other packages to upgrade and catch up? and is it really needed to upgrade especially for small projects?

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

      I usually wait at least a few months, if it's a major version. The main question is about the packages, when they release new versions.

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

    fideloper/proxy : Laravel 9 has incorporated this package into the core of Laravel.

  • @two-zero
    @two-zero 2 ปีที่แล้ว

    Thank you for this tutorial! :)

  • @piyapongkaewnan9675
    @piyapongkaewnan9675 2 ปีที่แล้ว

    Hi , I have a problem for upgrade 8 to 9 on windows , Can i fixed it?
    - spatie/laravel-backup[8.0.0, ..., 8.0.1] require ext-pcntl * -> it is missing from your system. Install or enable PHP's pcntl extension

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

      Well the error is clear - you need to enable an extension to your PHP system

    • @piyapongkaewnan9675
      @piyapongkaewnan9675 2 ปีที่แล้ว

      @@LaravelDaily Thanks , I try to install php pcntl extension , How to enable it.

    • @kreaweb-be
      @kreaweb-be 2 ปีที่แล้ว

      @@LaravelDaily This seems to be possible only on Linux based system, not on Windows.

  • @saeeedkhan
    @saeeedkhan 2 ปีที่แล้ว

    Sir you are great.

  • @Flankymanga
    @Flankymanga 2 ปีที่แล้ว

    Thanks for sharing!

  • @lifecyclevlog
    @lifecyclevlog 2 ปีที่แล้ว

    @povilas, please make a video on the best way to manage currency in laravel. I am a yearly subscriber of your courses, let me know if its already available there, may be I missed. thanks

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

      I don't think I talked about currency specifically anywhere, because, to be honest, I don't have enough practical experience with multi-currency projects. But maybe I would make some demo in the future, what exactly are the questions/problems about managing currency?

  • @jamshidbekyuldoshev7542
    @jamshidbekyuldoshev7542 2 ปีที่แล้ว

    Nice as always, Thanks

  • @JcBthug
    @JcBthug 2 ปีที่แล้ว

    How do you have that menu on the bottom with models queries and other options ?

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

      composer require barryvdh/laravel-debugbar

    • @JcBthug
      @JcBthug 2 ปีที่แล้ว

      @@LaravelDaily thank you!!

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

    We can see two exceptions in laravel debugbar, please check them and let us know. 💝

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

      Good catch! Those are:
      1. Cannot add MailCollector to Laravel Debugbar: Method Illuminate\Mail\Mailer::getSwiftMailer does not exist.
      2. Method Illuminate\Mail\Mailer::getSwiftMailer does not exist.
      And yes, it's related to mailer changes that are well documented in the upgrade guide, I just don't use emails in this project so it wasn't really a visual problem here.

    • @lifecyclevlog
      @lifecyclevlog 2 ปีที่แล้ว

      They just released a temp version to disable it.

  • @saidbenhmed7884
    @saidbenhmed7884 2 ปีที่แล้ว

    Thanks dude

  • @digadget
    @digadget 2 ปีที่แล้ว

    my terminal update composer look fine,, but i check in TrustProxies say error for 5 header. "Undefined class constant 'HEADER_X_FORWARDED_HOST'.intelephense(1012)"

  • @fahnleindieselschweif5022
    @fahnleindieselschweif5022 2 ปีที่แล้ว

    i am confused about the symfony 6 dependency. I thought, Laravel 9 needs it, but its coming out in autumn?

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

      Yes, it came in autumn. Of 2021. symfony.com/releases/6.0

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

      @@LaravelDaily Thank you for pointing me to wear my glasses! Missing a year isnt difficult these times 😀

  • @abrpp
    @abrpp 2 ปีที่แล้ว

    Hi Povilas, since laravel can integrate with vue, react (inertia) and even now next.js (breeze). Will it be an integration with angular too? just curious.. thank you

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

      I don't think so, from what I have been reading, Angular is kinda dying in usage

    • @abrpp
      @abrpp 2 ปีที่แล้ว

      @@LaravelDaily ok thank you for the info

  • @JediJide2
    @JediJide2 2 ปีที่แล้ว

    Thanks for the walkthrough. My attempt to upgrade from 8 to 9 gave me a really weird Illuminate/support error.
    "illuminate/support[v7.0.0, ..., v7.28.4] require php ^7.2.5 -> your php version (8.0.12) does not satisfy that requirement."

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

      Look through other errors, probably some package requires illuminate/support v7 and you need to upgrade that package version.

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

      @@LaravelDaily - Yes, thank you. "facade/ignition": "^2.5" needed to be replaced with "spatie/laravel-ignition": "^1.0". It solved the issue.

    • @Meister256
      @Meister256 2 ปีที่แล้ว

      @@JediJide2 I had exactly the same problem like you, i replaced this package, i run composer update (all works fine), and after that i become a new error "Class "Facade\Ignition\IgnitionServiceProvider" not found"
      I get this error always, every time that i run an artisan command or i try to view the site in the explorer. Any idea? Thank you!

    • @Meister256
      @Meister256 2 ปีที่แล้ว

      @@LaravelDaily Hi hi!, ty so much for the tutorial. After i replace the ignition package, i get this error: "Class "Facade\Ignition\IgnitionServiceProvider" not found"
      I use this packages:
      "require": {
      "php": "^8.0",
      "ext-json": "*",
      "ext-simplexml": "*",
      "guzzlehttp/guzzle": "^7.2",
      "laravel/framework": "^9.0",
      "laravel/tinker": "^2.7"
      },
      "require-dev": {
      "spatie/laravel-ignition": "^1.0",
      "fzaninotto/faker": "^1.9.1",
      "laravel/ui": "^3.4.3",
      "mockery/mockery": "1.4.4",
      "nunomaduro/collision": "^6.1",
      "phpunit/phpunit": "^9.5.10"

      },
      Do you know where can be the problem? Thank you!!

  • @saravanasai2391
    @saravanasai2391 2 ปีที่แล้ว

    again really a good content sir thank you . On this week sat car video i request you to speak about job market for laravel developers & having really a lot of confusions on which tech stack to choose Like Live-wire or vue with laravel or react with laravel or else choosinh new laungage like node.js for career development . Really i think it make all other juniour developers are also got mind fogged by this . so share your opinion on what was the market status

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

      th-cam.com/video/QbpwYTscbBY/w-d-xo.html I already have such video

  • @polonq
    @polonq 2 ปีที่แล้ว

    New knowledge thx

  • @jailsoncarneiro4936
    @jailsoncarneiro4936 2 ปีที่แล้ว

    Great!

  • @LeandroAndrade2010
    @LeandroAndrade2010 2 ปีที่แล้ว

    Example excelente...

  • @saicharandogiparthi5744
    @saicharandogiparthi5744 2 ปีที่แล้ว

    how to upgrade from laravel 5.6 to laravel 9

  • @jatinchauhan323
    @jatinchauhan323 2 ปีที่แล้ว

    Can anyone know how to encode your primary id in resource routes

    • @uxweb
      @uxweb 2 ปีที่แล้ว

      You can use an additional UUID field on your tables that can be exposed in public

  • @DeTechDivus
    @DeTechDivus 2 ปีที่แล้ว

    On installation it is still 8.61

  • @Andrejs31
    @Andrejs31 2 ปีที่แล้ว

    In my work I frequently need to write custom php scripts to do certain things and installing laravel project to make one command seems
    not the best practice. Can you make a video explaining how you would structure the whole directory, what packages would you use to make
    things simpler? Usually if I work with laravel then I know where to put the logic but if I work with plain php I dont know where to put the php files and the whole project becomes a mess.
    The most frequently I need a oracle,mysql or other type of database connection to select data and then I need to parse them and
    either write the result to database, log file or mail it. Ideally I would like to have migrations, dd() with ignition package, mailing done easy with templates and readable console output with coloring.

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

      I don't work with plain PHP scripts or projects, so I'm following the default Laravel structure for everything

  • @alimurtaza5295
    @alimurtaza5295 2 ปีที่แล้ว

    Which editor or ide your are using?

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

      PhpStorm

    • @alimurtaza5295
      @alimurtaza5295 2 ปีที่แล้ว

      @@LaravelDaily From where
      I can get it free crack? and also which server you are using? xammp???

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

    in real world upgrade never works on large applications, where you used many pakages. one package depended on another package. better install clean laravel 9.

  • @phojie6868
    @phojie6868 2 ปีที่แล้ว

    First ❤️

  • @stefik4
    @stefik4 2 ปีที่แล้ว

    Nice video @LaravelDaily!
    All packages are updated on my side but i can not serve the program :(
    php artisan serve
    In Application.php line 751: Class "Facade\Ignition\IgnitionServiceProvider" not found
    it comes from: vendor/livewire/livewire/src/LivewireServiceProvider.php
    Am i doing something wrong ? :/

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

      Googled it for you, try these solutions: stackoverflow.com/questions/62725380/laravel-error-class-facade-ignition-ignitionserviceprovider-not-found

    • @stefik4
      @stefik4 2 ปีที่แล้ว

      @@LaravelDaily I've tested it before - no results :( The same error :(
      Already removed
      It might be related with required to use vite instead of mix ?

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

      Not sure, can't debug it for you