Home > Enterprise >  Please provide a valid cache path
Please provide a valid cache path

Time:03-27

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:

  1. Open your terminal.
  2. Run cd YOUR_LARAVEL_PATH to navigate to the Laravel directory.
  3. Run mkdir storage/framework/{cache,sessions,views} to create missing directories.
  4. Run php artisan cache:clear
  5. Run php artisan config:clear
  6. Run php artisan view:clear
  7. Run chmod -R 777 storage to set write permissions (depends on your system).
  • Related