🆙 Final fix delete storage link to fix news_images and logs 🆙

This commit is contained in:
Remco
2026-01-07 20:29:24 +01:00
parent 65ea6c167f
commit acf2d7e661
447 changed files with 208 additions and 66965 deletions
@@ -1,27 +0,0 @@
<?php
namespace App\Observers;
use App\Models\User;
class UserObserver
{
public function created(User $user): void
{
// We voegen haakjes toe zodat PHP 8.5 de volgorde begrijpt
$isHcEnabled = (setting('give_hc_on_register') ?: '0') === '1';
$user->settings()->create([
'last_hc_payday' => $isHcEnabled ? now()->addYears(10)->unix() : 0,
]);
if ($isHcEnabled) {
$user->hcSubscription()->insert([
'user_id' => $user->id,
'subscription_type' => 'HABBO_CLUB',
'timestamp_start' => now()->unix(),
'timestamp_expire' => now()->addYears(10)->unix(),
]);
}
}
}