pint/lint
This commit is contained in:
@@ -11,7 +11,9 @@ class Transaction extends Model
|
|||||||
use HasFactory;
|
use HasFactory;
|
||||||
|
|
||||||
public const STATUS_TRUE_POSITIVE = 'true_positive';
|
public const STATUS_TRUE_POSITIVE = 'true_positive';
|
||||||
|
|
||||||
public const STATUS_FALSE_POSITIVE = 'false_positive';
|
public const STATUS_FALSE_POSITIVE = 'false_positive';
|
||||||
|
|
||||||
public const STATUS_CLEARED = 'cleared';
|
public const STATUS_CLEARED = 'cleared';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
+4
-4
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Route;
|
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
use Illuminate\Support\Facades\Route;
|
||||||
use Laravel\Fortify\Features;
|
use Laravel\Fortify\Features;
|
||||||
use Livewire\Volt\Volt;
|
use Livewire\Volt\Volt;
|
||||||
|
|
||||||
@@ -14,19 +14,19 @@ Route::get('/test-zweite-db', function () {
|
|||||||
try {
|
try {
|
||||||
// Eine einfache Abfrage auf der zweiten Verbindung
|
// Eine einfache Abfrage auf der zweiten Verbindung
|
||||||
$result = DB::connection('pgsql_second')->select('SELECT NOW() as current_time');
|
$result = DB::connection('pgsql_second')->select('SELECT NOW() as current_time');
|
||||||
|
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'status' => 'Erfolgreich verbunden mit zweiter Datenbank',
|
'status' => 'Erfolgreich verbunden mit zweiter Datenbank',
|
||||||
'zeitstempel' => $result[0]->current_time
|
'zeitstempel' => $result[0]->current_time,
|
||||||
]);
|
]);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'status' => 'Fehler bei der Verbindung',
|
'status' => 'Fehler bei der Verbindung',
|
||||||
'meldung' => $e->getMessage()
|
'meldung' => $e->getMessage(),
|
||||||
], 500);
|
], 500);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
Route::view('dashboard', 'dashboard')
|
Route::view('dashboard', 'dashboard')
|
||||||
->middleware(['auth', 'verified'])
|
->middleware(['auth', 'verified'])
|
||||||
->name('dashboard');
|
->name('dashboard');
|
||||||
|
|||||||
Reference in New Issue
Block a user