user creating flow updated

This commit is contained in:
Sevan Nerse
2022-06-28 21:45:14 +03:00
parent d7c101e025
commit db60980dce
4 changed files with 17 additions and 61 deletions

View File

@@ -1,22 +0,0 @@
<?php
namespace App\Listeners\Auth;
use App\Events\Auth\InvitationCreated as Event;
use App\Notifications\Auth\Invitation as Notification;
class SendUserInvitation
{
/**
* Handle the event.
*
* @param $event
* @return void
*/
public function handle(Event $event)
{
$invitation = $event->invitation;
$invitation->user->notify(new Notification($invitation));
}
}