mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-08-03 06:16:14 -04:00
Initial commit
This commit is contained in:
@@ -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');
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user