gamify reputation added

This commit is contained in:
Benjamin Takats
2023-01-15 17:09:04 +01:00
parent 41cbce2add
commit d1c211fd5a
7 changed files with 154 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace App\Listeners;
use App\Gamify\Points\LoggedIn;
class AddLoginReputation
{
/**
* Create the event listener.
* @return void
*/
public function __construct()
{
//
}
/**
* Handle the event.
*
* @param object $event
*
* @return void
*/
public function handle($event)
{
$event->user->givePoint(new LoggedIn($event->user));
}
}