Add public product landing page at /

Serve a marketing landing page at the site root via ProductLandingController
instead of redirecting straight to login, with config/product_landing.php and
product views.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
isaacclad
2026-06-11 07:05:51 +00:00
co-authored by Claude Opus 4.8
parent a67648e0d3
commit a754e8068b
4 changed files with 177 additions and 3 deletions
+2 -3
View File
@@ -1,5 +1,6 @@
<?php
use App\Http\Controllers\ProductLandingController;
use App\Http\Controllers\Auth\SsoLoginController;
use App\Http\Controllers\Hosting\AccountController;
use App\Http\Controllers\Hosting\AfiaController;
@@ -18,9 +19,7 @@ $serversApp = fn (string $path = ''): string => 'https://'.config('app.servers_d
// Ladill Hosting — authenticated app for buying + managing hosting (hosting.ladill.com).
Route::get('/', fn () => auth()->check()
? redirect()->route('hosting.dashboard')
: redirect()->route('sso.connect'))->name('hosting.root');
Route::get('/', [ProductLandingController::class, 'show'])->name('hosting.landing');
Route::get('/login', [SsoLoginController::class, 'connect'])->name('login');
Route::get('/sso/connect', [SsoLoginController::class, 'connect'])->name('sso.connect');