getKey(); } /** * Return a key value array, containing any custom claims to be added to the JWT. * * @return array */ public function getJWTCustomClaims() { return []; } /* * 用户信息 * */ public function user_info() { return $this->belongsTo(User::class,'user_id'); } /* * 认证表信息 * */ public function cert_info(){ return $this->belongsTo(UserCert::class,'id','user_id'); } public function cert_user(){ return $this->hasOne(UserCert::class,'user_id','id'); } public function get_order(){ return $this->hasMany(Ordertest::class,'user_id','id'); } public function get_store(){ return $this->hasOne(Store::class,'user_id','id'); } }