<?php

namespace App\Responses;

use App\Http\Controllers\Api\BaseApiController;

class UnauthenticatedResponse
{
    public static function render()
    {
        // We can call the BaseApiController method statically
        // by making the error() method static.
        // Let's assume we modify BaseApiController for this.
        return (new BaseApiController)->error('Unauthenticated. Please provide a valid token.', 401);
    }
}