EventServiceProvider.php 775 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace App\Providers;
  3. use App\Models\GoodsSpec;
  4. use App\Observers\GoodsSpecObserver;
  5. use Illuminate\Support\Facades\Event;
  6. use Illuminate\Auth\Events\Registered;
  7. use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
  8. use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
  9. class EventServiceProvider extends ServiceProvider
  10. {
  11. /**
  12. * The event listener mappings for the application.
  13. *
  14. * @var array
  15. */
  16. protected $listen = [
  17. Registered::class => [
  18. SendEmailVerificationNotification::class,
  19. ],
  20. ];
  21. /**
  22. * Register any events for your application.
  23. *
  24. * @return void
  25. */
  26. public function boot()
  27. {
  28. parent::boot();
  29. //
  30. }
  31. }