Quellcode durchsuchen

allow to set parent_id in permission model using create method

Paweł Bukowski vor 4 Jahren
Ursprung
Commit
631afa512b
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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