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:
parent
08fbff0e98
commit
915f1f8722
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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"]) !!}
|
||||
|
|
|
|||
Loading…
Reference in New Issue