Files
2026-09-04 09:27:48 +02:00

25 lines
526 B
PHP

<?php
namespace App\Domains\UserManagement\Controllers;
use App\Providers\InertiaProvider;
use App\Scopes\CommonController;
class ProfileController extends CommonController
{
public function __invoke()
{
if (!$this->checkAuth()) {
return redirect()->intended('/login');
}
$user = currentUser();
$inertiaProvider = new InertiaProvider('UserManagement/Profile', [
'username' => $user->username,
]);
return $inertiaProvider->render();
}
}