浏览代码

add $fillable

visuddhinanda 3 年之前
父节点
当前提交
da09139d44
共有 2 个文件被更改,包括 3 次插入0 次删除
  1. 2 0
      app/Models/NissayaEnding.php
  2. 1 0
      app/Models/Relation.php

+ 2 - 0
app/Models/NissayaEnding.php

@@ -11,4 +11,6 @@ class NissayaEnding extends Model
     protected $casts = [
         'id' => 'string'
     ];
+	protected $fillable = ['id','ending','lang','relation'];
+
 }

+ 1 - 0
app/Models/Relation.php

@@ -12,5 +12,6 @@ class Relation extends Model
     protected $casts = [
         'id' => 'string'
     ];
+	protected $fillable = ['id','name','case','to'];
 
 }