🆙 Add fixed cms 🆙
This commit is contained in:
1 parent
b1a2cab62d
commit
b67e0ec2b9
3982 files changed
+193682
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Miscellaneous;
|
||||
|
||||
use App\Services\SettingsService;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class WebsiteSetting extends Model
|
||||
{
|
||||
protected $guarded = [];
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
protected static function booted(): void
|
||||
{
|
||||
static::saved(fn () => SettingsService::clearCache());
|
||||
static::deleted(fn () => SettingsService::clearCache());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user