lasthourcloud/bootstrap/helpers/api.php
Andras Bacsai b8708f086e feat: initial api endpoints
feat: server resources are now looks better
2024-02-16 21:56:38 +01:00

8 lines
136 B
PHP

<?php
function get_team_id_from_token()
{
$token = auth()->user()->currentAccessToken();
return data_get($token, 'team_id');
}