<?php

namespace App\Http\Controllers\API;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class TestController extends Controller
{
    public function testDashboard()
    {
        return response()->json([
            'message' => 'Dashboard access successful',
            'user' => auth()->user(),
            'role' => auth()->user()->roles->pluck('name'),
            'permissions' => auth()->user()->permissions->pluck('name'),
        ]);
    }
}