Commit 7b6f6994 authored by Dominik Hebeler's avatar Dominik Hebeler

removed donation db

parent 1bd9929e
......@@ -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.';
......
......@@ -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'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment