Browse Source

Merge pull request #1054 from shacky/2.0

Allow to set parent_id in permission model using create method
Jiang Qinghua 4 năm trước cách đây
mục cha
commit
4411994009
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Models/Permission.php

+ 1 - 1
src/Models/Permission.php

@@ -21,7 +21,7 @@ class Permission extends Model implements Sortable
     /**
      * @var array
      */
-    protected $fillable = ['name', 'slug', 'http_method', 'http_path'];
+    protected $fillable = ['parent_id', 'name', 'slug', 'http_method', 'http_path'];
 
     /**
      * @var array