feat: implement Change resource with CRUD functionality and migration
update image tags to v0.0.8 in build scripts and docker-compose files
This commit is contained in:
parent
64a7d1d2f4
commit
5b0e55c4b2
20 changed files with 408 additions and 88 deletions
49
app/Observers/ChangeObserver.php
Normal file
49
app/Observers/ChangeObserver.php
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<?php
|
||||
|
||||
namespace App\Observers;
|
||||
|
||||
use App\Jobs\ProcessChangeUpdate;
|
||||
use App\Models\Change;
|
||||
|
||||
class ChangeObserver
|
||||
{
|
||||
/**
|
||||
* Handle the Change "created" event.
|
||||
*/
|
||||
public function created(Change $change): void
|
||||
{
|
||||
ProcessChangeUpdate::dispatch($change->id, 'created');
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle the Change "updated" event.
|
||||
*/
|
||||
public function updated(Change $change): void
|
||||
{
|
||||
ProcessChangeUpdate::dispatch($change->id, 'updated');
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle the Change "deleted" event.
|
||||
*/
|
||||
public function deleted(Change $change): void
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle the Change "restored" event.
|
||||
*/
|
||||
public function restored(Change $change): void
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle the Change "force deletecURLd" event.
|
||||
*/
|
||||
public function forceDeleted(Change $change): void
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue