ReferralApplyObserver.php 408 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace App\Observers;
  3. use Cache;
  4. class ReferralApplyObserver
  5. {
  6. /**
  7. * Handle the ReferralApply "created" event.
  8. */
  9. public function created(): void
  10. {
  11. Cache::forget('open_referral_apply_count');
  12. }
  13. /**
  14. * Handle the ReferralApply "updated" event.
  15. */
  16. public function updated(): void
  17. {
  18. Cache::forget('open_referral_apply_count');
  19. }
  20. }