2020-07-11 19:34:26 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Observers;
|
|
|
|
|
|
|
|
use App\Vacancy;
|
|
|
|
|
2020-10-21 00:29:50 +00:00
|
|
|
|
2020-07-11 19:34:26 +00:00
|
|
|
class VacancyObserver
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Handle the vacancy "created" event.
|
|
|
|
*
|
|
|
|
* @param \App\Vacancy $vacancy
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function created(Vacancy $vacancy)
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Handle the vacancy "updated" event.
|
|
|
|
*
|
|
|
|
* @param \App\Vacancy $vacancy
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function updated(Vacancy $vacancy)
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Handle the vacancy "deleted" event.
|
|
|
|
*
|
|
|
|
* @param \App\Vacancy $vacancy
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function deleted(Vacancy $vacancy)
|
|
|
|
{
|
|
|
|
// TODO: Handle deletion of children's data
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Handle the vacancy "restored" event.
|
|
|
|
*
|
|
|
|
* @param \App\Vacancy $vacancy
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function restored(Vacancy $vacancy)
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Handle the vacancy "force deleted" event.
|
|
|
|
*
|
|
|
|
* @param \App\Vacancy $vacancy
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function forceDeleted(Vacancy $vacancy)
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|