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
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"?
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.
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.
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.
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.
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?
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
@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
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?
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.
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)"
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
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."
@@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!
@@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!!
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
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.
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.
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 ? :/
Excited to uncover what Laravel 9 has inside!
Updating any framework is a good reason to write the missing tests first =)
composer outdated --direct ... This can help speeding up the process of finding related updates for installed dependencies
Hooray! Thank you for sharing
Thanks good to see how to investigate upgrade problems.
What are the terminal commands for updating an existing laravel vue project?
In short: Don't upgrade yet until most packages add support for L9
thx for summarize
Yes, if you are using lot of 3rd party packages like me, worst case is you'll never able to upgrade.
@@smith4591 or you'lneed to fork it
you can install L9 then reconstruct from your L8 project
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
Thanks for your video. I really like how you explain things ^^
Hooray! Thank you so much for sharing.
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"?
to discover outdated dependencies you can use
composer outdated --direct
Great work and thank you very much for your work.
Awesome Vid as always, Sir.
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...
Well, even Taylor himself doesn't recommend Lumen anymore: laravel-news.com/should-you-use-lumen-for-a-speed-boost
I don't like Lumen at all 😞
If you really want a lightweight framework then check out Slim micro framework, otherwise adopt Laravel ❤️
thx!
Seems you're sick ... hope you get well soon.
Yeah, a little, thanks. It's quite funny that everyone is talking about COVID, but no one actually cancelled simple flu and getting cold :)
Hi , I hope you are fine? How can I update php version in laravel project?
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.
Sir is it possible to upgrade laravel version 6 to 9 directly?
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.
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.
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.
Thanks a lot.
Nice video man 🔥
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.
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?
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.
fideloper/proxy : Laravel 9 has incorporated this package into the core of Laravel.
Thank you for this tutorial! :)
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
Well the error is clear - you need to enable an extension to your PHP system
@@LaravelDaily Thanks , I try to install php pcntl extension , How to enable it.
@@LaravelDaily This seems to be possible only on Linux based system, not on Windows.
Sir you are great.
Thanks for sharing!
@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
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?
Nice as always, Thanks
How do you have that menu on the bottom with models queries and other options ?
composer require barryvdh/laravel-debugbar
@@LaravelDaily thank you!!
We can see two exceptions in laravel debugbar, please check them and let us know. 💝
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.
They just released a temp version to disable it.
Thanks dude
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)"
i am confused about the symfony 6 dependency. I thought, Laravel 9 needs it, but its coming out in autumn?
Yes, it came in autumn. Of 2021. symfony.com/releases/6.0
@@LaravelDaily Thank you for pointing me to wear my glasses! Missing a year isnt difficult these times 😀
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
I don't think so, from what I have been reading, Angular is kinda dying in usage
@@LaravelDaily ok thank you for the info
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."
Look through other errors, probably some package requires illuminate/support v7 and you need to upgrade that package version.
@@LaravelDaily - Yes, thank you. "facade/ignition": "^2.5" needed to be replaced with "spatie/laravel-ignition": "^1.0". It solved the issue.
@@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!
@@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!!
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
th-cam.com/video/QbpwYTscbBY/w-d-xo.html I already have such video
New knowledge thx
Great!
Example excelente...
how to upgrade from laravel 5.6 to laravel 9
Can anyone know how to encode your primary id in resource routes
You can use an additional UUID field on your tables that can be exposed in public
On installation it is still 8.61
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.
I don't work with plain PHP scripts or projects, so I'm following the default Laravel structure for everything
Which editor or ide your are using?
PhpStorm
@@LaravelDaily From where
I can get it free crack? and also which server you are using? xammp???
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.
First ❤️
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 ? :/
Googled it for you, try these solutions: stackoverflow.com/questions/62725380/laravel-error-class-facade-ignition-ignitionserviceprovider-not-found
@@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 ?
Not sure, can't debug it for you