Before you move the whole development, just login the vscode with your github account and sync all your settings to the cloud.
- Copy all your project folder to new laptop
- Install vscode and login your github account and sync
- open your powershell and run following commmand
1
ssh-keygen -t rsa -b 4096 -C “[email protected]”
- open folder C:\Users\yourUserName\.ssh and then open a file named id_rsa.pub with notepad or your favorite edit apps, then copy all content in this file to your clipboard.
- open your github -> settings -> SSH and GPG keys -> New SSH key
- copy all contents to the “key” field and put your new laptop name to the “title” field then save
- install git for windows and set up your git user informationif you forget your git user information on your old laptop use this
1
2git config --global user.name "Your Name"
git config --global user.email "[email protected]"1
git config --list
- restart your vscode and enjoy
if your laravel project can not run after you move to new laptop you just clear the optimize
1 | php artisan optimize:clear |