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:
co-authored by
Claude Opus 4.8
parent
a67648e0d3
commit
a754e8068b
+2
-3
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user