Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save diloabininyeri/3b952e465a617a20d55f9f15592a0d7b to your computer and use it in GitHub Desktop.
Save diloabininyeri/3b952e465a617a20d55f9f15592a0d7b to your computer and use it in GitHub Desktop.
<?php
namespace App\Providers;
use App\Listeners\AuthLoginListener;
use Illuminate\Auth\Events\Login;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
/**
* Class EventServiceProvider
* @package App\Providers
*/
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
Registered::class => [
SendEmailVerificationNotification::class,
],
Login::class => [
AuthLoginListener::class
],
];
/**
* Register any events for your application.
*
* @return void
*/
public function boot()
{
parent::boot();
//
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment