Initial commit

This commit is contained in:
Fritz Ramirez
2024-02-12 22:54:20 -05:00
commit 10d0c477c8
19640 changed files with 4931275 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace Modules\ModuleManager\Entities;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Cache;
use Rennokki\QueryCache\Traits\QueryCacheable;
class Module extends Model
{
protected $guarded = ['id'];
public static function boot()
{
parent::boot();
self::created(function ($model) {
Cache::forget('ModuleList');
});
self::updated(function ($model) {
Cache::forget('ModuleList');
});
}
}