<?php

namespace App\Http\Controllers\Api\v1;

use App\Helpers\ApiResponse;
use App\Http\Controllers\Controller;
use App\Http\Resources\User\UserResource;
use App\Models\User;
use App\Services\AuthService\AuthService;
u
    /**
     * Get user details.
     */
    public function me(): ApiResponse
    {
        return ApiResponse::success([
            "user" => UserResource::make(auth("sanctum")->user())->toArray(),
        ]);
    }
}
