some stan

This commit is contained in:
nurmuhammet committed 2025-10-23 00:15:55 +05:00
1 parent 85df3ec412
commit d8c340028c
10 files changed
+203 -10

No files matched your search

+1 -1
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();