PHP Laravel - Getting no Token

Viewed 38

I looked at a tutorial for getting requests with Laravel. But I do not get the Token. Any ideas?

$user->createToken('app')->accessToken;

I am Getting

"token": {
        "name": "app",
        "abilities": [
            "*"
        ],

But it should be like a long cryptic string

This should be the result, but I get the above

1 Answers

I used this to create token value

$token=Str::random(64);

Related