
Laravel Upgrade guide from Laravel 5.6 to 8.6 - Laravel Complete Migrate/Upgrade Tutorial
Hello everyone, todays tutorial, I'll show you the process of upgrading system of Laravel from 5.6 to 8.xor 8.61 to last current version of Laravel.
Let's start.
Github Source Code:
So, Before Start the Project in 5.6 - https://github.com/ManiruzzamanAkash/Laravel-Ecommerce-Site/tree/Part31
After Upgradation to 8.x - https://github.com/ManiruzzamanAkash/Laravel-Ecommerce-Site/tree/Part32
Dependecy Upgrade
- Upgrade Laravel Version
8.x
incomposer.json
- Upgrade all other dependency versions
- Change
app\Exceptions\Handler.php
file to new one - Add new files in
Http\Middleware
folder according to new Laravel 8 - Uncaught ReflectionException: Class env does not exist -
php artisan clear
php artisan config:clear
- Class 'Fideloper\Proxy\TrustProxies' not found -
composer require fideloper/proxy
- Delete all cached files -
-
storage/framework/views/*
all files or - if possible delete files also from
cache/data/*
or - just run the command -
php artisan view:clear
-
Code Upgrade
- Update Route declaration system according to
8.x
- Update some Helper files function like
str_slug()
toStr::slug()
- - Update some Helper files function like
str_random()
toStr::random()
- count()
deprecated issue- Auth system updated with frontend sanctum or -
- Install laravel/ui -
composer require laravel/ui
- Install Node JS and npm
- https://nodejs.org/en/
- npm install -
npm i
- Install laravel/ui -
- Check if any issues while running the project
PHP If-else-elseif and Switch-case
PHP String Functions - All necessary String functions in PHP to manage strings better.
Popular Tutorials
Categories
-
Bash Scripting
1
-
Bootstrap CSS
0
-
C Programming
8
-
C#
0
-
ChatGPT
1
-
Code Editor
2
-
CSS
2
-
Design Pattern in PHP
2
-
E-Book
1
-
Git Commands
1
-
HTML
19
-
Interview Prepration
2
-
Java Programming
0
-
JavaScript
11
-
Laravel PHP Framework
37
-
Mysql
1
-
Node JS
1
-
Online Business
0
-
PHP
28
-
Programming
7
-
Python
1
-
React Js
19
-
React Native
1
-
Redux
2
-
Tailwind CSS
1
-
Typescript
10
-
Uncategorized
0
-
Vue JS
1
-
Windows Operating system
1
-
Woocommerce
1
-
WordPress Development
2
Tags
- Bash Scripting
- Business
- C
- C-sharp programming
- C++
- Code Editor
- CSS
- Database
- Design pattern
- Express JS
- git
- Git Commands
- github
- HTML
- Java
- JavaScript
- Laravel
- Mathematics
- MongoDB
- Mysql
- Node JS
- PHP
- Programming
- Python
- React Js
- Redux
- TypeScript
- Vue JS
- Windows terminal
- Woocommerce
- WordPress
- WordPress Plugin Development