1retrieved
2creating
3created
4updating
5updated
6saving
7saved
8deleting
9deleted
10restoring
11restored
1<?php
2
3namespace App\Observers;
4
5use App\Models\User;
6
7class UserObserver
8{
9 /**
10 * Handle the User "created" event.
11 *
12 * @param \App\Models\User $user
13 * @return void
14 */
15 public function created(User $user)
16 {
17 //
18 }
19
20 /**
21 * Handle the User "updated" event.
22 *
23 * @param \App\Models\User $user
24 * @return void
25 */
26 public function updated(User $user)
27 {
28 //
29 }
30
31 /**
32 * Handle the User "deleted" event.
33 *
34 * @param \App\Models\User $user
35 * @return void
36 */
37 public function deleted(User $user)
38 {
39 //
40 }
41
42 /**
43 * Handle the User "forceDeleted" event.
44 *
45 * @param \App\Models\User $user
46 * @return void
47 */
48 public function forceDeleted(User $user)
49 {
50 //
51 }
52}