简体   繁体   中英

PHP Laravel - Getting no Token

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

这应该是结果,但我得到了上面

I used this to create token value

$token=Str::random(64);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM