put a minimal config for installer into config dir

This commit is contained in:
Nabeel Shahzad 2018-02-25 11:12:27 -06:00
parent 44f839e104
commit 82b5ff620d
3 changed files with 14 additions and 5 deletions

10
config/installer.php Normal file
View File

@ -0,0 +1,10 @@
<?php
return [
'php' => [
# You can change this to a lower version, the lowest
# can be 7.0. However, there's no guarantee that things
# will work properly. Change at your peril!
'version' => '7.1.3'
]
];

View File

@ -10,8 +10,8 @@ return [
'pdo',
'mbstring',
'tokenizer',
'JSON',
'cURL',
'json',
'curl',
],
# Make sure these are writable

View File

@ -2,9 +2,8 @@
namespace Modules\Installer\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Database\Eloquent\Factory;
use Nwidart\Modules\Support\Stub;
use Illuminate\Support\ServiceProvider;
use Route;
@ -60,7 +59,7 @@ class InstallerServiceProvider extends ServiceProvider
{
$this->publishes([
__DIR__.'/../Config/config.php' => config_path('installer.php'),
], 'config');
], 'installer');
$this->mergeConfigFrom(
__DIR__.'/../Config/config.php', 'installer'