diff --git a/app/Http/Controllers/InstallationController.php b/app/Http/Controllers/InstallationController.php index e44e794..dd870c3 100755 --- a/app/Http/Controllers/InstallationController.php +++ b/app/Http/Controllers/InstallationController.php @@ -31,6 +31,11 @@ class InstallationController extends Controller { $agencyData = collect($request->only('agency_name', 'agency_website', 'email')) ->map(function ($value, $key) { + + if ($key == 'email') { + $key = 'agency_email'; + } + return [ 'key' => $key, 'value' => $value, diff --git a/tests/Feature/InstallationTest.php b/tests/Feature/InstallationTest.php index 59d1fa8..a66e50a 100644 --- a/tests/Feature/InstallationTest.php +++ b/tests/Feature/InstallationTest.php @@ -75,5 +75,10 @@ class InstallationTest extends TestCase 'key' => 'agency_website', 'value' => 'https://example.com', ]); + + $this->seeInDatabase('site_options', [ + 'key' => 'agency_email', + 'value' => 'email@mail.com', + ]); } }