From ae7460d178a3e532825bc4cb94b7acc620f7ef09 Mon Sep 17 00:00:00 2001 From: Hamid Musavi Date: Wed, 7 Feb 2024 10:31:10 +0330 Subject: [PATCH] Update Permission.php Add Fillable fields to permission Model --- src/Models/Permission.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Models/Permission.php b/src/Models/Permission.php index eeba802..1afd129 100644 --- a/src/Models/Permission.php +++ b/src/Models/Permission.php @@ -11,11 +11,13 @@ class Permission extends Model { use HasFactory; + protected $fillable = ['name', 'slug', 'label']; + protected static function boot() { parent::boot(); - static::saving(function() { + static::saving(function () { Cache::forget('allPermissionRoles'); Cache::forget('permission'); });