<?php

namespace App\Http\Middleware;

use Illuminate\Auth\Middleware\Authenticate as Middleware;
use Illuminate\Http\Request;

class Authenticate extends Middleware
{
    /**
     * API-only project — never redirect, always return null so Laravel
     * responds with a 401 JSON response instead of looking for a "login" route.
     */
    protected function redirectTo(Request $request): ?string
    {
        return null;
    }
}
