Эх сурвалжийг харах

allow to set parent_id in permission model using create method

Paweł Bukowski 4 жил өмнө
parent
commit
631afa512b

+ 1 - 1
src/Models/Permission.php

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