misc_pterodactyl-panel/app/Observers/UserObserver.php
2017-12-30 20:25:04 -06:00

51 lines
981 B
PHP

<?php
namespace Pterodactyl\Observers;
use Pterodactyl\Events;
use Pterodactyl\Models\User;
class UserObserver
{
protected $uuid;
/**
* Listen to the User creating event.
*
* @param \Pterodactyl\Models\User $user
*/
public function creating(User $user)
{
event(new Events\User\Creating($user));
}
/**
* Listen to the User created event.
*
* @param \Pterodactyl\Models\User $user
*/
public function created(User $user)
{
event(new Events\User\Created($user));
}
/**
* Listen to the User deleting event.
*
* @param \Pterodactyl\Models\User $user
*/
public function deleting(User $user)
{
event(new Events\User\Deleting($user));
}
/**
* Listen to the User deleted event.
*
* @param \Pterodactyl\Models\User $user
*/
public function deleted(User $user)
{
event(new Events\User\Deleted($user));
}
}