mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-15 02:07:56 -04:00
32 lines
783 B
PHP
32 lines
783 B
PHP
<?php
|
|
|
|
namespace Modules\FrontendCMS\Entities;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Support\Facades\Cache;
|
|
|
|
class Feature extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
public static function boot()
|
|
{
|
|
parent::boot();
|
|
self::created(function ($model) {
|
|
Cache::forget('featureContent');
|
|
Cache::forget('suscriptionContent');
|
|
});
|
|
self::updated(function ($model) {
|
|
Cache::forget('featureContent');
|
|
Cache::forget('suscriptionContent');
|
|
});
|
|
self::deleted(function ($model) {
|
|
Cache::forget('featureContent');
|
|
Cache::forget('suscriptionContent');
|
|
});
|
|
}
|
|
}
|