Permalink
Browse files

create eventListener for user login event

  • Loading branch information...
adjust-fuchigami committed Nov 2, 2017
1 parent 8d16c69 commit 8c68512e7370fdb7326e831e54fa20860f987d3a
Showing with 32 additions and 3 deletions.
  1. +29 −0 app/Listeners/LoginSuccess.php
  2. +3 −3 app/Providers/EventServiceProvider.php
@@ -0,0 +1,29 @@
<?php
namespace App\Listeners;
use Illuminate\Auth\Events\Login as LoginEvent;
class LoginSuccess
{
/**
* Create the event listener.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Handle the event.
*
* @param KernelBootstrapped $event
* @return void
*/
public function handle(LoginEvent $event)
{
}
}
@@ -13,9 +13,9 @@ class EventServiceProvider extends ServiceProvider
* @var array
*/
protected $listen = [
'App\Events\Event' => [
'App\Listeners\EventListener',
],
'Illuminate\Auth\Events\Login' => [
'App\Listeners\LoginSuccess',
],
];
/**

0 comments on commit 8c68512

Please sign in to comment.