there is a way to add other data like user role in the header response , i know that i can modify directly the file route.php and add to
$user = [ 'id' => $userModel->id, 'name' => $userModel->name, 'surname' => $userModel->surname, 'username' => $userModel->username, 'email' => $userModel->email, 'is_activated' => $userModel->is_activated, ];
Hello,
there is a way to add other data like user role in the header response , i know that i can modify directly the file route.php and add to
$user = [ 'id' => $userModel->id, 'name' => $userModel->name, 'surname' => $userModel->surname, 'username' => $userModel->username, 'email' => $userModel->email, 'is_activated' => $userModel->is_activated, ];
there is a way to extend this file , thans