Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
open-source
MetaGer
Commits
7b6f6994
Commit
7b6f6994
authored
Nov 27, 2019
by
Dominik Hebeler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed donation db
parent
1bd9929e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
35 deletions
+0
-35
app/Http/Controllers/MailController.php
app/Http/Controllers/MailController.php
+0
-18
config/database.php
config/database.php
+0
-17
No files found.
app/Http/Controllers/MailController.php
View file @
7b6f6994
...
...
@@ -4,7 +4,6 @@ namespace App\Http\Controllers;
use
App\Mail\Kontakt
;
use
App\Mail\Sprachdatei
;
use
DB
;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Response
;
use
LaravelLocalization
;
...
...
@@ -143,23 +142,6 @@ class MailController extends Controller
$messageType
=
"success"
;
$messageToUser
=
"Herzlichen Dank!! Wir haben Ihre Spendenbenachrichtigung erhalten."
;
try
{
// Add the donation to our database
$spenden
=
DB
::
connection
(
'spenden'
)
->
table
(
'debits'
)
->
insert
(
[
'name'
=>
$name
,
'iban'
=>
$iban
->
MachineFormat
(),
'bic'
=>
$bic
,
'amount'
=>
$betrag
,
'message'
=>
$nachricht
,
]
);
DB
::
disconnect
(
'spenden'
);
}
catch
(
\
Illuminate\Database\QueryException
$e
)
{
}
}
catch
(
\
Swift_TransportException
$e
)
{
$messageType
=
"error"
;
$messageToUser
=
'Beim Senden Ihrer Spendenbenachrichtigung ist ein Fehler auf unserer Seite aufgetreten. Bitte schicken Sie eine E-Mail an: office@suma-ev.de, damit wir uns darum kümmern können.'
;
...
...
config/database.php
View file @
7b6f6994
...
...
@@ -69,23 +69,6 @@ return [
'strict'
=>
true
,
'engine'
=>
null
,
],
'spenden'
=>
[
'driver'
=>
'mysql'
,
'host'
=>
env
(
'DB_HOST_SPENDEN'
,
'localhost'
),
'port'
=>
env
(
'DB_PORT_SPENDEN'
,
'3306'
),
'database'
=>
env
(
'DB_DATABASE_SPENDEN'
,
'forge'
),
'username'
=>
env
(
'DB_USERNAME_SPENDEN'
,
'forge'
),
'password'
=>
env
(
'DB_PASSWORD_SPENDEN'
,
''
),
'charset'
=>
'utf8'
,
'collation'
=>
'utf8_unicode_ci'
,
'prefix'
=>
''
,
'strict'
=>
true
,
'engine'
=>
null
,
],
'pgsql'
=>
[
'driver'
=>
'pgsql'
,
'host'
=>
env
(
'DB_HOST'
,
'localhost'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment