More Events on User Registration

Want to perform some actions after new user registration? Head to app/Providers/EventServiceProvider.php and add more Listeners classes, and then in those classes implement handle() method with $event->user object

1class EventServiceProvider extends ServiceProvider
2{
3 protected $listen = [
4 Registered::class => [
5 SendEmailVerificationNotification::class,
6 
7 // You can add any Listener class here
8 // With handle() method inside of that class
9 ],
10 ];

Like our articles?

Become a Premium Member for $129/year or $29/month
What else you will get:
  • 22 courses (477 lessons, total 38 h 20 min)
  • 2 long-form tutorials (one new every week)
  • access to project repositories
  • access to private Discord