【发布时间】:2021-06-15 11:46:21
【问题描述】:
我已经成功安装了带有 Sail 的 Laravel,该应用程序很好,我可以使用 sail up 运行它。但是我无法迁移数据库,每次我运行sail artisan migrate 时都会抛出以下错误。
There is no existing directory at "/home/dariel/www/2021/nsmart/storage/logs" and it could not be created: Permission denied
at vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:172
168▕ set_error_handler([$this, 'customErrorHandler']);
169▕ $status = mkdir($dir, 0777, true);
170▕ restore_error_handler();
171▕ if (false === $status && !is_dir($dir)) {
➜ 172▕ throw new \UnexpectedValueException(sprintf('There is no existing directory at "%s" and it could not be created: '.$this->errorMessage, $dir));
173▕ }
174▕ }
175▕ $this->dirCreated = true;
176▕ }
+10 vendor frames
11 [internal]:0
Illuminate\Foundation\Bootstrap\HandleExceptions::handleException()
我被困在这一点上,任何帮助将不胜感激。提前致谢。
【问题讨论】: