I'm working with Jetsterm library with Laravel 9, And I've deleted the Storage folder by the wrong, And then it shows this error
Please provide a valid cache path.
what do I should do?
I tried to command composer install and I faced the same error! So how can I return back the Storage folder?
CodePudding user response:
create the following
storage/app
storage/app/public
storage/framework
storage/framework/cache
storage/framework/cache/data
storage/framework/views
storage/framework/session
storage/logs
And use git to manage your code so that accidents like this are easily recovered
CodePudding user response:
- Open your terminal.
- Run
cd YOUR_LARAVEL_PATH
to navigate to the Laravel directory. - Run
mkdir storage/framework/{cache,sessions,views}
to create missing directories. - Run
php artisan cache:clear
- Run
php artisan config:clear
- Run
php artisan view:clear
- Run
chmod -R 777 storage
to set write permissions (depends on your system).