R2.2: HubPageData - Plan-Katalog + echte Plattform-Kennzahlen fuer die Hub-Landing

Liefert Plan::active(), Einzel-PM-Preis und stuendlich gecachte echte
Zahlen (Archiv-Mitteilungen gesamt/je Portal, aktive Newsrooms,
Branchen) an web.pressekonto. Tests: Katalog-Preise statt Fake-Liste,
keine toten Links/erfundenen Referenzen, Rechtsseiten auf der
Hub-Domain erreichbar. (Gehoert zum Web-Commit der Hub-Ueberarbeitung.)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Kevin Adametz 2026-07-03 09:24:04 +00:00
parent 5226f5de2b
commit f6edb4aec5
3 changed files with 104 additions and 10 deletions

View file

@ -16,6 +16,7 @@ use App\Models\Category;
use App\Models\Company;
use App\Models\Plan;
use App\Scopes\PortalScope;
use App\Services\Web\HubPageData;
use App\Support\DomainAssetContext;
use Illuminate\Support\Facades\Route;
@ -39,7 +40,7 @@ Route::get('/', function () use ($applyWebDomainConfig) {
if (str_contains($domain, 'pressekonto')) {
$applyWebDomainConfig('pressekonto');
return view('web.pressekonto');
return view('web.pressekonto', app(HubPageData::class)->build());
}
return redirect(request()->getSchemeAndHttpHost().'/'.SetEdition::DEFAULT_EDITION, 301);