some stan
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user