55 lines
1.2 KiB
PHP
55 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Observers;
|
|
|
|
use App\Events\AuditionChange;
|
|
use App\Events\ScoringGuideChange;
|
|
use App\Models\ScoringGuide;
|
|
|
|
class ScoringGuideObserver
|
|
{
|
|
/**
|
|
* Handle the ScoringGuide "created" event.
|
|
*/
|
|
public function created(ScoringGuide $scoringGuide): void
|
|
{
|
|
ScoringGuideChange::dispatch();
|
|
}
|
|
|
|
/**
|
|
* Handle the ScoringGuide "updated" event.
|
|
*/
|
|
public function updated(ScoringGuide $scoringGuide): void
|
|
{
|
|
AuditionChange::dispatch();
|
|
ScoringGuideChange::dispatch();
|
|
}
|
|
|
|
/**
|
|
* Handle the ScoringGuide "deleted" event.
|
|
*/
|
|
public function deleted(ScoringGuide $scoringGuide): void
|
|
{
|
|
AuditionChange::dispatch();
|
|
ScoringGuideChange::dispatch();
|
|
}
|
|
|
|
/**
|
|
* Handle the ScoringGuide "restored" event.
|
|
*/
|
|
public function restored(ScoringGuide $scoringGuide): void
|
|
{
|
|
AuditionChange::dispatch();
|
|
ScoringGuideChange::dispatch();
|
|
}
|
|
|
|
/**
|
|
* Handle the ScoringGuide "force deleted" event.
|
|
*/
|
|
public function forceDeleted(ScoringGuide $scoringGuide): void
|
|
{
|
|
AuditionChange::dispatch();
|
|
ScoringGuideChange::dispatch();
|
|
}
|
|
}
|