lasthourcloud/bootstrap/helpers/api.php

8 lines
136 B
PHP
Raw Normal View History

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