51 lines
896 B
PHP
51 lines
896 B
PHP
<?php
|
|
|
|
namespace App\Observers;
|
|
|
|
use App\Models\Doubler;
|
|
use App\Models\EntryFlag;
|
|
|
|
class EntryFlagObserver
|
|
{
|
|
/**
|
|
* Handle the EntryFlag "created" event.
|
|
*/
|
|
public function created(EntryFlag $entryFlag): void
|
|
{
|
|
Doubler::syncDoublers();
|
|
|
|
}
|
|
|
|
/**
|
|
* Handle the EntryFlag "updated" event.
|
|
*/
|
|
public function updated(EntryFlag $entryFlag): void
|
|
{
|
|
Doubler::syncDoublers();
|
|
}
|
|
|
|
/**
|
|
* Handle the EntryFlag "deleted" event.
|
|
*/
|
|
public function deleted(EntryFlag $entryFlag): void
|
|
{
|
|
Doubler::syncDoublers();
|
|
}
|
|
|
|
/**
|
|
* Handle the EntryFlag "restored" event.
|
|
*/
|
|
public function restored(EntryFlag $entryFlag): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Handle the EntryFlag "force deleted" event.
|
|
*/
|
|
public function forceDeleted(EntryFlag $entryFlag): void
|
|
{
|
|
//
|
|
}
|
|
}
|