I'm also learning and had the same problem today, and this worked for me:
First make a backup of the project folder.
Then delete the vendor directory, and after deleting open the terminal and go to your project directory and write:
composer install
composer update
composer dump-autoload
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community