Skip to content

Commit

Permalink
Add DB port to options.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Thompson committed Jul 6, 2019
1 parent b84a770 commit 57daec3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
7 changes: 6 additions & 1 deletion resources/lang/en/field.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
'placeholder' => 'localhost',
'instructions' => 'What is the hostname of your database?',
],
'database_port' => [
'label' => 'Port',
'placeholder' => '3306',
'instructions' => 'What is the port number of your database?',
],
'database_name' => [
'label' => 'Database',
'placeholder' => 'streams',
Expand Down Expand Up @@ -70,4 +75,4 @@
'label' => 'Timezone',
'instructions' => 'What is the default timezone of your application?',
],
];
];
1 change: 1 addition & 0 deletions src/Installer/Form/InstallerFormBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class InstallerFormBuilder extends FormBuilder
'fields' => [
'database_driver',
'database_host',
'database_port',
'database_name',
'database_username',
'database_password',
Expand Down
8 changes: 8 additions & 0 deletions src/Installer/Form/InstallerFormFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ public function handle(InstallerFormBuilder $builder)
'value' => env('DB_HOST', 'localhost'),
'required' => true,
],
'database_port' => [
'label' => 'anomaly.module.installer::field.database_port.label',
'placeholder' => 'anomaly.module.installer::field.database_port.placeholder',
'instructions' => 'anomaly.module.installer::field.database_port.instructions',
'type' => 'anomaly.field_type.text',
'value' => env('DB_PORT', '3306'),
'required' => true,
],
'database_name' => [
'label' => 'anomaly.module.installer::field.database_name.label',
'placeholder' => 'anomaly.module.installer::field.database_name.placeholder',
Expand Down

0 comments on commit 57daec3

Please sign in to comment.