Best way to upgrade laravel framework for your projects in following steps
update: if you are trying to upgrade laravel version 5.5 and up skip step 3. also for laravel 5.5 and up no need to enable third party package service providers in step 5.
Happy updating laravel for your projects.
You have to install these packages first before run composer update, also change the version of laravel to 5.7 in your
Ubundu Terminal Command
sudo apt install php7.2 libapache2-mod-php7.2 php7.2-mbstring php7.2-xmlrpc php7.2-soap php7.2-gd php7.2-xml php7.2-cli php7.2-zip
Delete the vendor folder and try
if below 7 , maybe you have alias like
many servers use php aliases
just change the laravel to 5.7.* in composer.json file and run composer install command