You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CompanyObserver.php 927B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. namespace App\Observers;
  3. use App\Models\Company;
  4. use App\Services\DefaultSettingService;
  5. class CompanyObserver
  6. {
  7. /**
  8. * Handle the Company "created" event.
  9. */
  10. public function created(Company $company): void
  11. {
  12. $defaultSettingService = new DefaultSettingService();
  13. $defaultSettingService->createDefaultSettings($company);
  14. }
  15. /**
  16. * Handle the Company "updated" event.
  17. */
  18. public function updated(Company $company): void
  19. {
  20. //
  21. }
  22. /**
  23. * Handle the Company "deleted" event.
  24. */
  25. public function deleted(Company $company): void
  26. {
  27. //
  28. }
  29. /**
  30. * Handle the Company "restored" event.
  31. */
  32. public function restored(Company $company): void
  33. {
  34. //
  35. }
  36. /**
  37. * Handle the Company "force deleted" event.
  38. */
  39. public function forceDeleted(Company $company): void
  40. {
  41. //
  42. }
  43. }