Laravel Gates using model and returns "Using $this when not in object context" Line 28 of AzureUser model
PHP Snippet 1:
AzureUser::roles();
PHP Snippet 2:
use App\AzureUser;
$azure = new AzureUser();
$roles = $azure->role();
AzureUser::roles();
use App\AzureUser;
$azure = new AzureUser();
$roles = $azure->role();