Javed A. Baloch
Javed A. Baloch

Reputation: 1090

Laravel Upgrade From 5.6 to Laravel 6

I have a Project https://github.com/javedbaloch4/Laravel-Booking developed in Laravel 5.6 now I want to upgrade it to Laravel 6. What are the steps can I directly update to 6 or first goto 5.7, 5.8 and then.

Please can guide the steps here for a quickly upgrade Thanks.

Upvotes: 5

Views: 9022

Answers (3)

Latheesan
Latheesan

Reputation: 24116

The official framework documentation tells you exactly how to upgrade:

https://laravel.com/docs/5.7/upgrade

https://laravel.com/docs/5.8/upgrade

https://laravel.com/docs/6.x/upgrade

https://laravel.com/docs/7.x/upgrade

Upvotes: 2

Vipertecpro
Vipertecpro

Reputation: 3284

Step 1 : Remove the followings from your composer.json file

"laravelcollective/html": "^5.4.0",
"yajra/laravel-datatables-oracle": "^8.4"

Step 2 : Replace this line

"laravel/framework": "5.6.*",

To this

"laravel/framework": "^6.0",

Step 3 : Run Following commands in order

composer require laravel/helpers
composer require laravelcollective/html
composer require yajra/laravel-datatables-oracle
composer require yajra/laravel-datatables-buttons
composer require yajra/laravel-datatables-html
composer require yajra/laravel-datatables-fractal
composer require yajra/laravel-datatables-editor
composer update
composer dumpa

Key Point to notice and understand is whenever you want to upgrade make sure all the packages you're using have compatibility with correct versions of laravel and php. Check and follow the repo. on git to get notified if any new upgrades are there.

That's It, You're Good to go.

Upvotes: 2

jnbn
jnbn

Reputation: 70

You can also use https://laravelshift.com if you need any automatized solution.

Upvotes: 0

Related Questions