private function setStorageDirPermission()
{
$storagePath = $this->getBasePath('storage');
$storagePerm = '0707';
if (!$this->noInteraction) {
$this->line('Input directory permission for storage.');
$storagePerm = $this->ask('./storage directory permission', $storagePerm);
} else {
$this->line("passed");
}
$process = new Process("chmod -R {$storagePerm} {$storagePath}");
$process->run();
// executes after the command finishes
if (!$process->isSuccessful()) {
throw new \RuntimeException($process->getErrorOutput());
}
}