some stan

This commit is contained in:
2025-10-23 00:15:55 +05:00
parent 85df3ec412
commit d8c340028c
10 changed files with 203 additions and 10 deletions

View File

@@ -51,7 +51,7 @@ function logDB(): void
*/
function user(): User
{
abort_unless(Auth::check(), 'not-authenticated');
abort_unless(Auth::check(), 401, 'Unauthorized');
/** @var \App\Models\User */
$user = Auth::user();