HEX
Server: nginx/1.28.3
System: Linux lightweb-s1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User: dawonefr-98 (1071)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: /home/dnlightw-124/dn.lightweb.kr/routes/tenant.php
<?php

use App\Services\InertiaRender;
use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Inertia\Inertia;
use RalphJSmit\Laravel\SEO\Support\SEOData;

//로그인이 필요하지 않은 라우팅
Route::middleware([
    'frontend'
])->group(function (Router $router) {
    $router->get('/', function () {
        return InertiaRender::vue('Welcome',[
            'tenant' => tenancy()->tenant
        ],new SEOData(title: __('Welcome New Tenant')));
    })->name('home');
});

//사용자 인증이 필요한 tenant 라우팅
Route::middleware([
    'frontend',
    'auth:sanctum',
    config('jetstream.auth_session'),
    'verified',
])->group(function (Router $router) {

    Route::get('/dashboard', function () {
        return InertiaRender::vue('Dashboard');
    })->name('dashboard');

});