How to Upgrade to Laravel 9: Live-Coding Demo

  Рет қаралды 52,898

Laravel Daily

Laravel Daily

Күн бұрын

Пікірлер: 88
@aryank8695
@aryank8695 2 жыл бұрын
Excited to uncover what Laravel 9 has inside!
@miskith
@miskith 2 жыл бұрын
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
@mrAzrarn
@mrAzrarn 2 жыл бұрын
Updating any framework is a good reason to write the missing tests first =)
@中国在年之前我们也
@中国在年之前我们也 Жыл бұрын
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
@shopzyte
@shopzyte Жыл бұрын
What are the terminal commands for updating an existing laravel vue project?
@sherwinm
@sherwinm 2 жыл бұрын
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.
@GergelyCsermely
@GergelyCsermely 2 жыл бұрын
Thanks good to see how to investigate upgrade problems.
@papapilsen9828
@papapilsen9828 2 жыл бұрын
Hooray! Thank you so much for sharing.
@eMebyMonicaMateu
@eMebyMonicaMateu Жыл бұрын
Thanks for your video. I really like how you explain things ^^
@juanantonionavarrojimenez2966
@juanantonionavarrojimenez2966 2 жыл бұрын
Great work and thank you very much for your work.
@Yonas20102
@Yonas20102 2 жыл бұрын
Hi , I hope you are fine? How can I update php version in laravel project?
@LaravelDaily
@LaravelDaily 2 жыл бұрын
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.
@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 жыл бұрын
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.
@ricko13
@ricko13 2 жыл бұрын
In short: Don't upgrade yet until most packages add support for L9
@Rs3Audi
@Rs3Audi 2 жыл бұрын
thx for summarize
@smith4591
@smith4591 2 жыл бұрын
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
@MimisK88
@MimisK88 2 жыл бұрын
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 жыл бұрын
Well, even Taylor himself doesn't recommend Lumen anymore: laravel-news.com/should-you-use-lumen-for-a-speed-boost
@raziuldev
@raziuldev 2 жыл бұрын
I don't like Lumen at all 😞 If you really want a lightweight framework then check out Slim micro framework, otherwise adopt Laravel ❤️
@justtestingmycurrentskills747
@justtestingmycurrentskills747 2 жыл бұрын
Awesome Vid as always, Sir.
@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.
@JcBthug
@JcBthug 2 жыл бұрын
How do you have that menu on the bottom with models queries and other options ?
@LaravelDaily
@LaravelDaily 2 жыл бұрын
composer require barryvdh/laravel-debugbar
@JcBthug
@JcBthug 2 жыл бұрын
@@LaravelDaily thank you!!
@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.
@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"?
@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.
@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 жыл бұрын
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.
@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)"
@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?
@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 жыл бұрын
@@LaravelDaily Thank you for pointing me to wear my glasses! Missing a year isnt difficult these times 😀
@EL_PANDA_742
@EL_PANDA_742 2 жыл бұрын
Seems you're sick ... hope you get well soon.
@LaravelDaily
@LaravelDaily 2 жыл бұрын
Yeah, a little, thanks. It's quite funny that everyone is talking about COVID, but no one actually cancelled simple flu and getting cold :)
@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 жыл бұрын
Look through other errors, probably some package requires illuminate/support v7 and you need to upgrade that package version.
@JediJide2
@JediJide2 2 жыл бұрын
@@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!!
@llBestBoyll
@llBestBoyll 2 жыл бұрын
Nice video man 🔥
@two-zero
@two-zero 2 жыл бұрын
Thank you for this tutorial! :)
@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???
@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
@g3z
@g3z 2 жыл бұрын
to discover outdated dependencies you can use composer outdated --direct
@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
@lifecyclevlog
@lifecyclevlog 2 жыл бұрын
We can see two exceptions in laravel debugbar, please check them and let us know. 💝
@LaravelDaily
@LaravelDaily 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.
@jamshidbekyuldoshev7542
@jamshidbekyuldoshev7542 2 жыл бұрын
Nice as always, Thanks
@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
@saeeedkhan
@saeeedkhan 2 жыл бұрын
Sir you are great.
@ALiHameedAlHashemi
@ALiHameedAlHashemi 2 жыл бұрын
fideloper/proxy : Laravel 9 has incorporated this package into the core of Laravel.
@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 жыл бұрын
kzbin.info/www/bejne/h5PTqIyKqMiVeLs I already have such video
@Flankymanga
@Flankymanga 2 жыл бұрын
Thanks for sharing!
@saicharandogiparthi5744
@saicharandogiparthi5744 2 жыл бұрын
how to upgrade from laravel 5.6 to laravel 9
@DeTechDivus
@DeTechDivus 2 жыл бұрын
On installation it is still 8.61
@hakhagmon
@hakhagmon 2 жыл бұрын
thx!
@nikza1936
@nikza1936 2 жыл бұрын
Thanks a lot.
@madanmalhotra
@madanmalhotra 2 жыл бұрын
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.
@saidbenhmed7884
@saidbenhmed7884 2 жыл бұрын
Thanks dude
@polonq
@polonq 2 жыл бұрын
New knowledge thx
@jailsoncarneiro4936
@jailsoncarneiro4936 2 жыл бұрын
Great!
@LeandroAndrade2010
@LeandroAndrade2010 2 жыл бұрын
Example excelente...
@phojie6868
@phojie6868 2 жыл бұрын
First ❤️
11 Laravel Tips in 8 Minutes: December 2024
8:01
Laravel Daily
Рет қаралды 1,9 М.
Upgrade to Laravel 9 with Laravel Shift: Live Demo
12:58
Laravel Daily
Рет қаралды 12 М.
🎈🎈🎈😲 #tiktok #shorts
0:28
Byungari 병아리언니
Рет қаралды 4,5 МЛН
Война Семей - ВСЕ СЕРИИ, 1 сезон (серии 1-20)
7:40:31
Семейные Сериалы
Рет қаралды 1,6 МЛН
What is Data? | Data Fundamentals for Beginners
6:56
Alex The Analyst
Рет қаралды 1,8 М.
Upgrading from Laravel 5 7 to Laravel 10 Step by Step Guide
21:58
Сборник Эксклюзивов 2024 - Уральские Пельмени
1:33:24
Уральские Пельмени
Рет қаралды 694 М.
Laravel Security: Top 7 Mistakes Developers Make
11:16
Laravel Daily
Рет қаралды 87 М.
Laravel Eloquent: Deeper Relationships with One Query
10:37
Laravel Daily
Рет қаралды 145 М.
Upgrade to Laravel 7 from any laravel version
9:02
Bitfumes
Рет қаралды 48 М.
✅ How to Upgrade or Downgrade PHP Version in XAMPP on Windows 11/10
8:26
TechRuzz Tutorials
Рет қаралды 107 М.
Laravel 11: A new streamlined directory structure!
8:42
Laravel News
Рет қаралды 22 М.
How to Upgrade Older Projects to Laravel 10
7:52
Laravel Daily
Рет қаралды 31 М.