Hi, Folks, have you feels like Laravel continuous released of new versions has let you down and you can’t cope with it any longer, don’t worry this article is a quick guide for you, that has I upgrade Ofofonobs from 5.8 to the latest 8 versions.
All you need to know before upgrading your old laravel.
- External packages might fail to install, so isolate your packages first
- Install fresh laravel application
- Thank me later.
First, all you will do to be successful when upgrading your laravel application is to have two projects, your old project and the new fresh laravel 8.
Slowly move all your web.php, app folder, resources, migrations, public folder to the new fresh laravel.
Secondly, copy your external packages from composer.json to the new laravel composer.json
Quickly run composer update, if any packages break, remove it and continue, then look for alternative packages that broken and quickly get your new laravel working on laravel 8.
Quick little changes that might affect you, the routing method, look at laravel doc to see the latest way for routing but in my case, everything works perfectly after moving the above-mentioned files and update my packages.
Again if your laravel app is using Auth, you have to install laravel auth via command line
composer require laravel/UI
Now you have to scaffold the auth running the below command
// Generate basic scaffolding... php artisan ui bootstrap php artisan ui vue php artisan ui react // Generate login / registration scaffolding... php artisan ui bootstrap --auth php artisan ui vue --auth php artisan ui react --auth
Note for an old project no need to run those commands because you have them already.
Hurray! You have made it to laravel the latest version.
How to Enable Notification For Kash By Zuwapay?
If you completely block the site notification or chrome notifications, then you may not receive any site notification. Hence, here...
Best websites to make money clicking ads!
Have you ever thought about starting to make money online but, instead of doing so with the most usual means...
Plateau political bigwigs drum support for Lalong presidency
With less than two years to the next general elections, some political bigwigs, as well as chieftains of the ruling...
Why security agencies prefer DSS facility to Kuje Prison
Nigeria’s intelligence community are against the demand by Nnamdi Kanu and his legal team to have him moved to the...
How To Start Data Reselling Business In Nigeria 2021
Now today we will be looking at: Guide On How To Start Data Reselling Business In Nigeria 2021. Well Data reselling...
How Haiti President Moise was killed days after gangs declared revolution
The news of the murder of the President of Haiti Jovenel Moise shocked countries across the globe, world powers inclusive....
Fresh xenophobic protests hits South Africa as groups threaten Nigerians
Some groups led a protest in Soweto, South Africa, calling for the expulsion of foreigners and non-nationals which led to...
ZuwaPay Quick and Easy Data, Airtime, Bills Solution at Wholesale Price!
ZuwaPay The all-in-one platform for everyday purchases. People in Nigeria and other 10 African countries can now buy airtime, internet...
Buhari’s aides still tweet despite suspension by FG
Despite the ban on Twitter by the Nigerian government, some of President Muhammadu Buhari’s aides are still active on the...
FG suspends Twitter operations in Nigeria
The federal government has suspended the operations of Twitter, the microblogging and social networking service, in Nigeria. Lai Mohammed, minister...