79745508

Date: 2025-08-25 08:47:31
Score: 1
Natty:
Report link
// app/Exceptions/Handler.php

use Illuminate\Auth\AuthenticationException;

protected function unauthenticated($request, AuthenticationException $exception)
{
    return response()->json(['message' => 'Unauthenticated.'], 401);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kundan Kapgate