I duplicated a working laravel app and renamed it to use for another app. I deleted the vendor folder and run the following commands again:
composer self-up
step 1 : php artisan storage:link
step 2 : create these folders inside storage folder
Ensure the below folders in storage directory:
logs
framework
framework/cache
framework/sessions
framework/views
It worked for me
Check if the following folders exists, if not create these folders.
I solved the problem when I created framework folder inside storage folder and its subfolders sessions, views and cache.
Go to your cmd or terminal then type your project root path and after that type the following:
cd storage
mkdir framework
cd framework
mkdir sessions
mkdir views
mkdir cache
Go to your project root path back again and run composer update
After that artisan works perfectly.
Your storage directory may be missing, or one of its sub-directories. The storage directory must have all the sub-directories that shipped with the Laravel installation.
Issue on my side(while deploying on localhost): there was views folder missing.. so if you have don't have the framework folder the you 'll need to add folders. but if already framework folder exist then make sure all above folders i.e 1. cache 2. session 3. views
exists in your framework directory.
Try this:
php artisan cache:clear
php artisan config:clear
php artisan view:clear