Skip to content

Commit

Permalink
Update ProjectObserver.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bilawalshaikh authored Dec 8, 2023
1 parent c3f0239 commit 6ad9dbd
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions app/Observers /ProjectObserver.php
Original file line number Diff line number Diff line change
@@ -1 +1,49 @@
<?php

namespace App\Observers;

use App\Models\Stat;
use App\Models\Project;

class ProjectObserver
{
/**
* Handle the Project "created" event.
*/
public function created(Project $project): void
{
Stat::increment('projects_count', 1);
}

/**
* Handle the Project "updated" event.
*/
public function updated(Project $project): void
{
//
}

/**
* Handle the Project "deleted" event.
*/
public function deleted(Project $project): void
{
//
}

/**
* Handle the Project "restored" event.
*/
public function restored(Project $project): void
{
//
}

/**
* Handle the Project "force deleted" event.
*/
public function forceDeleted(Project $project): void
{
//
}
}

0 comments on commit 6ad9dbd

Please sign in to comment.