Optimierung Phase 1: Aufraeumen / toter Code
1.1 Prototyp admin/users/table entfernt: Route (war durch admin/users/{id}
ohnehin unerreichbar) + Volt-Komponente table.blade.php geloescht,
ADMIN_ROUTES.md aktualisiert; Regressions-Test in PanelConsolidationTest.
1.2 16 tote Legacy-Wrapper-Views unter resources/views/admin/* geloescht
(nutzten alte Route-Parameter, nirgends via view/@include/@livewire
gerendert); admin.dashboard + .md-Doku behalten.
1.3 Tote Helfer entfernt: EnsureUserIsAdmin redundantes loadMissing('roles'),
ungenutzter statusColor-Key aus with() in admin PR edit/show,
LegacyInvoicePdfController Laufzeit-Schema::hasColumn (Spalte existiert
seit Migration) inkl. Schema-Import.
Volle Suite gruen (794 passed, 1 skipped).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c7bd940f28
commit
554a731a24
25 changed files with 9 additions and 329 deletions
|
|
@ -5,7 +5,6 @@ namespace App\Http\Controllers;
|
|||
use App\Models\LegacyInvoice;
|
||||
use App\Services\Billing\LegacyInvoicePdfRenderer;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
|
|
@ -23,9 +22,7 @@ class LegacyInvoicePdfController extends Controller
|
|||
]);
|
||||
}
|
||||
|
||||
if (Schema::hasColumn('legacy_invoices', 'pdf_generated_at')) {
|
||||
$legacyInvoice->forceFill(['pdf_generated_at' => now()])->save();
|
||||
}
|
||||
$legacyInvoice->forceFill(['pdf_generated_at' => now()])->save();
|
||||
|
||||
return $renderer->inlineResponse($legacyInvoice);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue