Skip to content

Commit

Permalink
Update Permission.php
Browse files Browse the repository at this point in the history
Add Fillable fields to permission Model
  • Loading branch information
MirHamit authored Feb 7, 2024
1 parent 2e3e6cd commit ae7460d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Models/Permission.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
Expand Down

0 comments on commit ae7460d

Please sign in to comment.