代码之家  ›  专栏  ›  技术社区  ›  khaled daoud

请提供有效的缓存路径

  •  0
  • khaled daoud  · 技术社区  · 3 年前

    我正在使用Jetstream library和Laravel 9,我删除了错误的存储文件夹,然后它显示了以下错误。

    请提供有效的缓存路径。

    我该怎么办?我试过命令 composer install ,我也面临同样的错误!那么我怎样才能回到存储文件夹呢?

    1 回复  |  直到 3 年前
        1
  •  0
  •   Snapey    3 年前

    创建以下内容

    storage/app
    storage/app/public
    storage/framework
    storage/framework/cache
    storage/framework/cache/data
    storage/framework/views
    storage/framework/session
    storage/logs
    
    

    并使用git来管理代码,这样类似的事故就很容易恢复

        2
  •  0
  •   NickSdot    3 年前
    1. 打开你的终端。
    2. cd YOUR_LARAVEL_PATH 导航到Laravel目录。
    3. mkdir storage/framework/{cache,sessions,views} 创建丢失的目录。
    4. php artisan cache:clear
    5. php artisan config:clear
    6. php artisan view:clear
    7. chmod -R 777 storage 设置写入权限(取决于您的系统)。
    推荐文章