25 lines
679 B
PHP
25 lines
679 B
PHP
<?php
|
|
|
|
namespace App\Domains\Admin\Controllers;
|
|
|
|
use App\Providers\InertiaProvider;
|
|
use App\Scopes\CommonController;
|
|
use Illuminate\Http\Request;
|
|
use Inertia\Response;
|
|
|
|
class TenantPageController extends CommonController
|
|
{
|
|
public function __invoke(Request $request): Response
|
|
{
|
|
$inertiaProvider = new InertiaProvider('Admin/TenantData', [
|
|
'tenant' => [
|
|
'name' => $this->tenant->name,
|
|
'slug' => $this->tenant->slug,
|
|
'url' => $this->tenant->url,
|
|
'is_active_local_group' => $this->tenant->is_active_local_group,
|
|
],
|
|
]);
|
|
return $inertiaProvider->render();
|
|
}
|
|
}
|