Level 88
Did you run the following command in the vagrant (homestead) box?
sudo chmod -R ug+rwx storage bootstrap/cache
This should work for you ;)
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I did all permission command but still i got the storage permission error. please help
/home/vagrant/code/PhoneParLoan/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php
}
return;
}
private function createDir()
{
// Do not try to create dir if it has already been tried.
if ($this->dirCreated) {
return;
}
$dir = $this->getDirFromStream($this->url);
if (null !== $dir && !is_dir($dir)) {
$this->errorMessage = null;
set_error_handler(array($this, 'customErrorHandler'));
$status = mkdir($dir, 0777, true);
restore_error_handler();
if (false === $status && !is_dir($dir)) {
throw new \UnexpectedValueException(sprintf('There is no existing directory at "%s" and its not buildable: '.$this->errorMessage, $dir));
}
}
$this->dirCreated = true;
}
}
Arguments
"There is no existing directory at "/home/ajeet/code/PhoneParLoan/storage/logs" and its not buildable: Permission denied"
Please or to participate in this conversation.