goodawei

3129 经验值

若是用cmd写代码,是按视频上?

this.setState({todos: newTodos});谷歌报错了Uncaught TypeError: this.setState is not a function,是不是哪里还引用别的东西了?

const heading = ${'='.repeat(5)} ${fan} ${'='.repeat(5)};

    function padder(string,length=25){
        return `${''.repeat(Math.max(length - string.length, 0))}${string}`
    }

    console.log(padder(id));
    console.log(padder(fan));

    //*看不出是那的问题,视频和我的代码是一样的啊,视频是有对齐,我是左对齐。头疼。。。

‘你需要引入 dompurify 这个第三方的package’,这个在哪引用?

return DOMPurify.sanitize(dirty);谷歌浏览器报错了Uncaught ReferenceError: DOMPurify is not defined。怎么回事?

if (! $user = JWTAuth::parseToken()->authenticate()) {
                return response()->json(['user_not_found'], 404);
  }

发现返回false只因为读的还是 App\Model\User, 不是我jwt中配置的模型

jwt 是这样配置的

'user' => 'App\Models\Account\Account',

/*
|--------------------------------------------------------------------------
| User identifier
|--------------------------------------------------------------------------
|
| Specify a unique property of the user that will be added as the 'sub'
| claim of the token payload.
|
*/

'identifier' => 'uid',

auth.php 是这样的

'model' => 'App\Models\User',

/*
|--------------------------------------------------------------------------
| Authentication Table
|--------------------------------------------------------------------------
|
| When using the "Database" authentication driver, we need to know which
| table should be used to retrieve your users. We have chosen a basic
| default value but you may easily change it to any table you like.
|
*/

'table' => 'users',

你好 问个问题,为想在jwt.php中重新指定User Model namespace,但是最后发现验证token的时候还是用的auth.php的model,这个怎么破。。

你好,最近观看视频,无法观看,而去打开很慢。。。