SendEmailNotification.php 551 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Listeners;
  3. use Illuminate\Auth\Events\Login;
  4. use Illuminate\Contracts\Queue\ShouldQueue;
  5. use Illuminate\Queue\InteractsWithQueue;
  6. use Path\To\Your\Log;
  7. class SendEmailNotification
  8. {
  9. /**
  10. * Create the event listener.
  11. *
  12. * @return void
  13. */
  14. public function __construct()
  15. {
  16. //
  17. }
  18. /**
  19. * Handle the event.
  20. *
  21. * @param Login $event
  22. * @return void
  23. */
  24. public function handle(Login $event)
  25. {
  26. Log::info("Пользователь вошел!");
  27. }
  28. }