These are the Steps I intend to follow:
Step By Step Process:
1.Move all files from the Old laravel App 2. Re-write the composer.json file in 12 by copying the relevant dependencies from 8 3. Run Composer update 4. Update .env file
Firstly apologies for a noob question however :
I'm upgrading my Laravel app from version 8 to 12. Rather than upgrading through each version, I’ve decided to start fresh with a new Laravel 12 installation and migrate my existing code to this new installation.
My plan is to copy over essential files from the Laravel 8 app — controllers, models, views, routes, and assets like CSS/JS etc. However, I’m unsure which other files I should migrate. For instance, I’ve noticed differences in the vendor folders and some discrepancies between the two projects' structures.
I'm also unclear about how to handle composer.json, autoload, and any other important considerations during this migration. Can you help clarify what I should keep in mind?
I will use this thread to also share any issues and troubleshoots hopefully it becomes a useful resource for others in a similar position.
@screwtape_mk I'm puzzled since the string helpers were deprecated in the 5.8 upgrade.
https://laravel.com/docs/5.8/upgrade#string-and-array-helpers
You can restore old behaviour by requiring the Laravel/Helpers package
composer require laravel/helpers
Please or to participate in this conversation.