mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
gamify reputation added
This commit is contained in:
29
app/Listeners/AddLoginReputation.php
Normal file
29
app/Listeners/AddLoginReputation.php
Normal 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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user