first commit

This commit is contained in:
Sampanna Rimal
2024-08-27 17:48:06 +05:45
commit 53c0140f58
10839 changed files with 1125847 additions and 0 deletions

View File

@ -0,0 +1,50 @@
<?php
namespace App\Observers;
use App\Notifications\HrActionNotification;
use Modules\Admin\Models\Warning;
class WarningObserver
{
/**
* Handle the Warning "created" event.
*/
public function created(Warning $warning): void
{
$employee = $warning->warningRecipient;
$employee->notify(new HrActionNotification('warning', $warning,'you have been warned'));
}
/**
* Handle the Warning "updated" event.
*/
public function updated(Warning $warning): void
{
//
}
/**
* Handle the Warning "deleted" event.
*/
public function deleted(Warning $warning): void
{
//
}
/**
* Handle the Warning "restored" event.
*/
public function restored(Warning $warning): void
{
//
}
/**
* Handle the Warning "force deleted" event.
*/
public function forceDeleted(Warning $warning): void
{
//
}
}