50 lines
1.0 KiB
PHP
50 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace App\Observers;
|
|
|
|
use App\Events\ScoringGuideChange;
|
|
use App\Models\SeatingLimit;
|
|
|
|
class SeatingLimitObserver
|
|
{
|
|
/**
|
|
* Handle the SeatingLimit "created" event.
|
|
*/
|
|
public function created(SeatingLimit $seatingLimit): void
|
|
{
|
|
ScoringGuideChange::dispatch();
|
|
}
|
|
|
|
/**
|
|
* Handle the SeatingLimit "updated" event.
|
|
*/
|
|
public function updated(SeatingLimit $seatingLimit): void
|
|
{
|
|
ScoringGuideChange::dispatch();
|
|
}
|
|
|
|
/**
|
|
* Handle the SeatingLimit "deleted" event.
|
|
*/
|
|
public function deleted(SeatingLimit $seatingLimit): void
|
|
{
|
|
ScoringGuideChange::dispatch();
|
|
}
|
|
|
|
/**
|
|
* Handle the SeatingLimit "restored" event.
|
|
*/
|
|
public function restored(SeatingLimit $seatingLimit): void
|
|
{
|
|
ScoringGuideChange::dispatch();
|
|
}
|
|
|
|
/**
|
|
* Handle the SeatingLimit "force deleted" event.
|
|
*/
|
|
public function forceDeleted(SeatingLimit $seatingLimit): void
|
|
{
|
|
ScoringGuideChange::dispatch();
|
|
}
|
|
}
|