|
@@ -18,7 +18,10 @@ class UserToken extends Model
|
|
|
/**
|
|
|
* The attributes that are mass assignable.
|
|
|
*/
|
|
|
- protected array $fillable = [];
|
|
|
+ protected array $fillable = [
|
|
|
+ 'user_id', // 添加 user_id 到 fillable 属性
|
|
|
+ 'token',
|
|
|
+ ];
|
|
|
|
|
|
/**
|
|
|
* The attributes that should be cast to native types.
|