mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-14 00:02:05 -04:00
25 lines
531 B
PHP
25 lines
531 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Support\Facades\Cache;
|
|
|
|
class Subscription extends Model
|
|
{
|
|
use HasFactory;
|
|
protected $guarded = ['id'];
|
|
|
|
public static function boot()
|
|
{
|
|
parent::boot();
|
|
self::created(function ($model) {
|
|
Cache::forget('suscriptionContent');
|
|
});
|
|
self::updated(function ($model) {
|
|
Cache::forget('suscriptionContent');
|
|
});
|
|
}
|
|
}
|