Connect with us

How to Upgrade Laravel Application from Version 5 to latest Version 8

kizinho

Published

on

Follow
DEVELOPER PROGRAMMING: How to Upgrade Laravel Application from Version 5 to latest Version 8 [New  Developer Programming] » Naijacrawl
Photo: Naijacrawl
site

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 naijacrawl from 5.8 to the latest 8 versions.

All you need to know before upgrading your old laravel.

  1. External packages might fail to install, so isolate your packages first
  2. Install fresh laravel application
  3. 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.

Read Also : Mastering Laravel MVC (Model View Controller) and Folder Structures

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 bootstrapphp artisan ui vuephp artisan ui react// Generate login / registration scaffolding...php artisan ui bootstrap --authphp artisan ui vue --authphp 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.

Click Here To Comment


site


kizinho

Adike Kizito is a top-rated software developer, blogger, sports, and entertainment lover. He is the CEO of these popular websites Naijacrawl.com and Mp3ager.com. He operates his software developing task through Kizzsoft.com,... Read More

Continue Reading
Click to comment

Be first to comment


    Leave a Reply

    Your email address will not be published. Required fields are marked *

    Laravel 8 is now released!

    kizinho

    Published

    on

    DEVELOPER PROGRAMMING: Laravel 8 is now released! [New  Developer Programming] » Naijacrawl
    Photo: Naijacrawl
    Laravel 8 is now released and includes many new features including Laravel Jetstream, a models directory, model factory classes, migration squashing, rate-limiting improvements, time testing helpers, dynamic blade components, and many more features.Before we jump into the new features, we’d like to point out that starting with version 6, Laravel now follows semver and will release a new major version every six months. You can see how the release process works here.L...
    Continue Reading

    How to fix Flutterwave common error's while Integrating payment in your Laravel App

    kizinho

    Published

    on

    DEVELOPER PROGRAMMING: How to fix Flutterwave common error's while Integrating payment in your Laravel App [New  Developer Programming] » Naijacrawl
    Photo: Naijacrawl
    Hi folks, I was integrating FLutterwave on my laravel app, on the process i found a bunch of errors while trying to use it accept payment on my site. Have been a Paystack heavy user but decided to use Flutterwave for a reason that I love to do. Going through this article I will list the two types of error or bug that you must encounter while using Laravel Rave steps to get Flutterwave payment working.Types of errorError on the payment page when user try to refresh t...
    Continue Reading

    Upload files to Amazon S3 from the browser using pre-signed post (Laravel, Vue.js/Nuxt.js)

    kizinho

    Published

    on

    DEVELOPER PROGRAMMING: Upload files to Amazon S3 from the browser using pre-signed post (Laravel, Vue.js/Nuxt.js) [New  Developer Programming] » Naijacrawl
    Photo: Naijacrawl
    Upload files to Amazon S3 from the browser using pre-signed post (Laravel, Vue.js/Nuxt.js)This article was written by Okonkwo Buchi Flair a ccolleague of mind, read and know how to simply upload your files via Amazon S3.original article can be found hereBefore I begin I would love to point out that is my first post so please pardon me any errors you may find as you read alongRecently I’ve been working on a e-learning platform which of course was going to deal with a...
    Continue Reading

    Latest


    Download Naijacrawl App today

    Fastest way to read on the go

    Download the Naijacrawl App.