瀏覽代碼

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 = [
     protected $casts = [
         'id' => 'string'
         'id' => 'string'
     ];
     ];
+	protected $fillable = ['id','ending','lang','relation'];
+
 }
 }

+ 1 - 0
app/Models/Relation.php

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