Initial commit

This commit is contained in:
Ronald Huynen
2026-03-23 21:37:59 +01:00
commit 2547717edb
2193 changed files with 972171 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?php
namespace App\Observers;
use App\Models\Bank;
class BankObserver
{
/**
* Handle the Bank "created" event.
* Automatically register new Banks as love reacters and reactables.
*/
public function created(Bank $bank): void
{
if (!$bank->isRegisteredAsLoveReacter()) {
$bank->registerAsLoveReacter();
}
if (!$bank->isRegisteredAsLoveReactant()) {
$bank->registerAsLoveReactant();
}
}
}