ctrlpanel/app/Listeners/Verified.php

31 lines
576 B
PHP
Raw Normal View History

2021-06-05 09:26:32 +00:00
<?php
namespace App\Listeners;
use App\Models\Settings;
2021-06-05 09:26:32 +00:00
class Verified
{
/**
* Create the event listener.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Handle the event.
*
* @param object $event
* @return void
*/
public function handle($event)
{
$event->user->increment('server_limit', config('SETTINGS::USER:SERVER_LIMIT_REWARD_AFTER_VERIFY_EMAIL'));
$event->user->increment('credits', config('SETTINGS::USER:CREDITS_REWARD_AFTER_VERIFY_EMAIL'));
2021-06-05 09:26:32 +00:00
}
}