Permalink
Browse files

ユーザログイン時にBroadcastUserLoginedイベントをbroadcastする

  • Loading branch information...
adjust-fuchigami committed Nov 6, 2017
1 parent 0f8fc5a commit 32b4b3066e451c7784fa3c5f2257755472298ce2
Showing with 2 additions and 0 deletions.
  1. +2 −0 app/Listeners/LoginSuccess.php
@@ -3,6 +3,7 @@
namespace App\Listeners;
use Illuminate\Auth\Events\Login as LoginEvent;
use App\Events\BroadcastUserLogined;
class LoginSuccess
{
@@ -24,6 +25,7 @@ public function __construct()
*/
public function handle(LoginEvent $event)
{
broadcast(new BroadcastUserLogined($event->user));
}
}

0 comments on commit 32b4b30

Please sign in to comment.