瀏覽代碼

Update Profile model

Daniel Supernault 6 年之前
父節點
當前提交
abec5e4861
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/Profile.php

+ 1 - 0
app/Profile.php

@@ -13,6 +13,7 @@ class Profile extends Model
     protected $dates = ['deleted_at'];
     protected $dates = ['deleted_at'];
     protected $hidden = ['private_key'];
     protected $hidden = ['private_key'];
     protected $visible = ['id', 'user_id', 'username', 'name'];
     protected $visible = ['id', 'user_id', 'username', 'name'];
+    protected $fillable = ['user_id'];
 
 
     public function user()
     public function user()
     {
     {