protected function prepareWritableDirectories($appDirectory, OutputInterface $output)
    {
        $filesystem = new Filesystem;

        try {
            $filesystem->chmod($appDirectory.DIRECTORY_SEPARATOR.'bootstrap/cache', 0755, 0000, true);
            $filesystem->chmod($appDirectory.DIRECTORY_SEPARATOR.'storage', 0755, 0000, true);
        } catch (IOExceptionInterface $e) {
            $output->writeln('<comment>You should verify that the "storage" and "bootstrap/cache" directories are writable.</comment>');
        }

        return $this;
    }
protected function prepareWritableDirectories($appDirectory, OutputInterface $output)
    {
        $filesystem = new Filesystem;

        try {
            $filesystem->chmod($appDirectory.DIRECTORY_SEPARATOR.'bootstrap/cache', 0755, 0000, true);
            $filesystem->chmod($appDirectory.DIRECTORY_SEPARATOR.'storage', 0755, 0000, true);
        } catch (IOExceptionInterface $e) {
            $output->writeln('<comment>You should verify that the "storage" and "bootstrap/cache" directories are writable.</comment>');
        }

        return $this;
    }
protected function prepareWritableDirectories ( $ appDirectory , OutputInterface $ output ) { $ filesystem = new Filesystem ; try { $ filesystem -> chmod ( $ appDirectory . DIRECTORY_SEPARATOR . 'bootstrap/cache' , 0755 , 0000 , true ) ; $ filesystem -> chmod ( $ appDirectory . DIRECTORY_SEPARATOR . 'storage' , 0755 , 0000 , true ) ; } catch ( IOExceptionInterface $ e ) { $ output -> writeln ( '<comment>You should verify that the "storage" and "bootstrap/cache" directories are writable.</comment>' ) ; } return $ this ; }
Make sure the storage and bootstrap cache directories are writable.

@param  string  $appDirectory
@param  \Symfony\Component\Console\Output\OutputInterface  $output
@return $this
Make sure the storage and bootstrap cache directories are writable .