1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00
invoiceninja/app/Observers/UserObserver.php
2019-04-25 21:33:03 +10:00

65 lines
1.1 KiB
PHP

<?php
namespace App\Observers;
use App\Events\User\UserWasUpdated;
use App\Models\User;
class UserObserver
{
/**
* Handle the app models user "created" event.
*
* @param \App\Models\User $user
* @return void
*/
public function created(User $user)
{
//
}
/**
* Handle the app models user "updated" event.
*
* @param \App\Models\User $user
* @return void
*/
public function updated(User $user)
{
event(new UserWasUpdated($user));
}
/**
* Handle the app models user "deleted" event.
*
* @param \App\Models\User $user
* @return void
*/
public function deleted(User $user)
{
//
}
/**
* Handle the app models user "restored" event.
*
* @param \App\Models\User $user
* @return void
*/
public function restored(User $user)
{
//
}
/**
* Handle the app models user "force deleted" event.
*
* @param \App\Models\User $user
* @return void
*/
public function forceDeleted(User $user)
{
//
}
}