Initial commit

This commit is contained in:
root
2026-05-09 17:28:23 +02:00
commit 9d73f82529
5575 changed files with 281989 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php
declare(strict_types=1);
namespace App\Models\Miscellaneous;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Cache;
class WebsitePermission extends Model
{
/**
* Zorgt ervoor dat alle velden behalve ID gevuld mogen worden.
*/
#[\Override]
protected $guarded = ['id', 'created_at', 'updated_at', 'permission', 'rank_id'];
/**
* Automatische cache-opschoning bij wijzigingen.
*/
#[\Override]
protected static function booted(): void
{
$clearCache = fn () => Cache::forget('website_permissions');
static::saved($clearCache);
static::deleted($clearCache);
}
}