Laravel错误:Illuminate \ Contracts \ Filesystem \ FileNotFoundException

时间:2019-02-12 09:43:24

标签: php laravel ftp

运行“ php artisan config:cache”后出现此错误。

Illuminate\Contracts\Filesystem\FileNotFoundException  :vat 
vendor\laravel\framework\src\Illuminate\Filesystem\FilesystemAdapter.php:1
24
    120|     {
    121|         try {
    122|             return $this->driver->read($path);
    123|         } catch (FileNotFoundException $e) {
  > 124|             throw new ContractFileNotFoundException($path, $e->getCode(), $e);
    125|         }
    126|     }
    127|
    128|     /**

  Exception trace:

  1   League\Flysystem\FileNotFoundException::("File not found at path: ")
      \vendor\league\flysystem\src\Filesystem.php:388

当我删除“ bootstrap / cache”中的“ config.php”时,出现错误:

 ErrorException  : file_put_contents(storage\app\Products_02_12_2019_09:40:40_am.csv): failed to open stream: No such file or directory

  at vendor\league\flysystem\src\Adapter\Local.php:135
    131|     {
    132|         $location = $this->applyPathPrefix($path);
    133|         $this->ensureDirectory(dirname($location));
    134|
  > 135|         if (($size = file_put_contents($location, $contents, $this->writeFlags)) === false) {
    136|             return false;
    137|         }
    138|
    139|         $type = 'file';

请您帮忙?

0 个答案:

没有答案