Check permissions and show error if the database setup fails

This commit is contained in:
Nabeel Shahzad
2017-12-15 10:41:52 -06:00
parent b227090f54
commit 9607c0a27f
8 changed files with 108 additions and 29 deletions

View File

@@ -1,14 +1,10 @@
<?php
use Illuminate\Validation\Rule;
return [
'php' => [
'version' => '7.0.0'
],
# TODO: Remove eventually
// 'env_postfix' => '.generated',
'env_postfix' => '',
'extensions' => [
@@ -20,9 +16,15 @@ return [
'cURL',
],
# Make sure these are writable
'permissions' => [
'storage/framework/' => 'writeable',
'storage/logs/' => 'writeable',
'bootstrap/cache/' => 'writable'
'bootstrap/cache',
'storage',
'storage/app/public',
'storage/framework',
'storage/framework/cache',
'storage/framework/sessions',
'storage/framework/views',
'storage/logs',
],
];