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 *

    How to Integrate Flutterwave Rave Payment System in your Laravel Applications

    kizinho

    Published

    on

    DEVELOPER PROGRAMMING: How to Integrate Flutterwave Rave Payment System in your Laravel Applications [New  Developer Programming] » Naijacrawl
    Photo: Naijacrawl
    Hi Folks, I know many laravel developers that have been using Paystack as their payment system have been finding it difficult to integrate Paystack Laravel Package from Laravel 6.0 - 7.0 versions. Today I have a beautiful solution by using Flutterwave Rave Payment System, this process will work on any laravel versions.RequirementsRunning Exiting Project on LaravelCreate Account on FlutterwaveThen you are good to goLets Begincomposer require kingflamez/laravelrave On...
    Continue Reading

    Laravel Absolute Beginners Masterclass

    kizinho

    Published

    on

    DEVELOPER PROGRAMMING: Laravel Absolute Beginners Masterclass [New  Developer Programming] » Naijacrawl
    Photo: Naijacrawl
    Hi, folks you are welcome to laravel absolute beginner masterclass, if you are here to learn how laravel works, I will recommend you to visit laravel website here but if you are here to use laravel build a product, you are very welcome. Laravel is a PHP FrameworkWhat is a Framework?Before I dive into explaining Laravel, you will need to understand what is a framework. In general, a Framework is a set of conceptual structure and guidelines, used to build a useful pro...
    Continue Reading

    How to show a nice message to the user when an error occurs in using Guzzle with Laravel

    kizinho

    Published

    on

    DEVELOPER PROGRAMMING: How to show a nice message to the user when an error occurs in using Guzzle with Laravel [New  Developer Programming] » Naijacrawl
    Photo: Naijacrawl
    Hi Folks, have you encountered an ugly Exception when making a post, get, put, delete to external API when an error like 500 or 404 occurs. Today you are at the right place, after reading this you will be able to show a nice message to your users in case of any of those errors occursWhen making a request to external API using guzzle to solve this problem you will need to catch the Exception by following the steps below.Prepare your request using Guzzle, I believe yo...
    Continue Reading

    Latest