Improved install Process.

1. Added csrf token to form on install. This was causing Laravel to throw an error as no CSRF token was present.
2. During the install process default to MySQL as the default database.
This commit is contained in:
Jeremy Quinton 2018-07-04 15:26:12 +02:00
parent 08fbff0e98
commit 915f1f8722
3 changed files with 4 additions and 3 deletions

View File

@ -64,8 +64,8 @@ class InstallerController extends Controller
* Optional PHP extensions
*/
$data['optional_requirements'] = [
'pdo_pgsql',
'pdo_mysql',
'pdo_pgsql',
];
return view('Installer.Installer', $data);

1
installed Normal file
View File

@ -0,0 +1 @@
1.0.0

View File

@ -106,8 +106,8 @@
<div class="form-group">
{!! Form::label('database_type', trans("Installer.database_type"), array('class'=>'required control-label ')) !!}
{!! Form::select('database_type', array(
'pgsql' => "Postgres",
'mysql' => "MySQL",
'pgsql' => "Postgres",
), Input::old('database_type'),
array(
'class'=>'form-control'
@ -246,7 +246,7 @@
'class'=>'form-control'
)) !!}
</div>
{!! csrf_field() !!}
@include("Installer.Partials.Footer")
{!! Form::submit(trans("Installer.install"), ['class'=>" btn-block btn btn-success"]) !!}