瀏覽代碼

添加 fillable

visuddhinanda 4 年之前
父節點
當前提交
93b61e096b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/Models/UserDict.php

+ 1 - 0
app/Models/UserDict.php

@@ -11,4 +11,5 @@ class UserDict extends Model
 	protected $casts = [
 	protected $casts = [
 		'id' => 'string'
 		'id' => 'string'
 	];
 	];
+	protected $fillable = ['id','word','type','grammar','parent','factors','source','create_time'];
 }
 }