The "Please provide a valid cache path" problem usually appears in Laravel when transferring a project to a new hosting or downloadin a project on the computer.

Please provide a valid cache path error in Laravel

To solve the problem of "Please provide a valid cache path" in Laravel, you need to create the following directories under storage/framework :

  • sessions
  • views
  • cache
  • cache/data

You can use the following command to create directories:

mkdir storage/framework/sessions storage/framework/views storage/framework/cache/data -r

Previous Post Next Post