mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-15 11:07:53 -04:00
26 lines
503 B
PHP
26 lines
503 B
PHP
<?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');
|
|
});
|
|
}
|
|
}
|