Initial commit
This commit is contained in:
15
app/Observers/CallObserver.php
Normal file
15
app/Observers/CallObserver.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Observers;
|
||||
|
||||
use App\Models\Call;
|
||||
|
||||
class CallObserver
|
||||
{
|
||||
public function created(Call $call): void
|
||||
{
|
||||
if (!$call->isRegisteredAsLoveReactant()) {
|
||||
$call->registerAsLoveReactant();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user